[Python-Dev] urllib2 EP + decr. startup time

KoDer koder.mail at gmail.com
Fri Feb 16 18:29:41 CET 2007


2007/2/16, Phillip J. Eby <pje at telecommunity.com>:
> At 04:38 PM 2/16/2007 +0200, KoDer wrote:
.....
>
>
> Also, are you aware that putting a zipped version of the standard library
> on sys.path already speeds up startup considerably?  Python since 2.3
> automatically includes an appropriate entry in sys.path:
>

zipped version has one weakness - you can't put .so(or dll) files inside.
In my system 19 from 25 installed egg add directories ,not archives
(because it's contain dll ).
But even without egg directories >>
['',
'C:\\Python25\\Scripts',
'C:\\WINDOWS\\system32\\python25.zip',
'C:\\Python25\\DLLs',
'C:\\Python25\\lib',
'C:\\Python25\\lib\\plat-win',
.........
'C:\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode']
len(sys.path) == 18 (without eggs) near 18 / 2 = 9 'file not found' errors
 for every first module import.
So improvement of setuptools will help, but not solve this problem .
-- 
K.Danilov aka KoDer


More information about the Python-Dev mailing list