[Python-Dev] import too slow on NFS based systems

Antoine Pitrou solipsis at pitrou.net
Thu Jun 21 16:15:03 CEST 2012


On 2012年6月21日 17:08:09 +0300
Daniel Braniss <danny at cs.huji.ac.il> wrote:
> > There is such a thing in Python 3.3, although some stat() calls are
> > still necessary to know whether the directory caches are fresh.
> > Can you give it a try and provide some feedback?
>> WOW!
> with a sample python program:
>> in 2.7 there are:
> 	stats	open
> 	2736	9037
> in 3.3
> 	288	57
>> now I have to fix my 2.7 to work with 3.3 :-)
>> any chance that this can be backported to 2.7?

Not a chance. It is all based on using importlib as the default import
mechanism, and that's a gory piece of work that we wouldn't port in a
bugfix release.
Regards
Antoine.


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /