[Python-Dev] Autoloading? (Making Queue.Queue easier to use)
skip@pobox.com
skip at pobox.com
Sat Oct 15 15:15:43 CEST 2005
>> BTW, what's the performance problem in importing unnecessary stuff
>> (assuming pyc files are already generated) ?
Fredrik> larger modules can easily take 0.1-0.2 seconds to import (at
Fredrik> least if they use enough external dependencies).
I wish it was that short. At work we use lots of SWIG-wrapped C++
libraries. Whole lotta dynamic linking goin' on... In our case I don't
think autoloading would help all that much. We actually use all that stuff.
The best we could do would be to defer the link step for a couple seconds.
Skip
More information about the Python-Dev
mailing list