[Python-Dev] Fixing #7175: a standard location for Python config files
John Arbash Meinel
john at arbash-meinel.com
Fri Aug 13 21:21:45 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
...
> * that said, Windows seems much slower than Linux on equivalent
> hardware, perhaps attempting to open files is intrinsically more
> expensive there? Certainly it's not safe to assume conclusions drawn
> on Linux will apply equally well on Windows, or vice versa.
I don't know what the specific issue is here, but adding entries to
sys.path makes startup time *significantly* slower.
I happen to use easy_install since Windows doesn't have its own package
manager. Unfortunately the default of creating a new directory and
adding it to easy_install.pth is actually pretty terrible.
On my system, 'len(sys.path)' is 72 entries long. 62 of that is from
easy-install. A huge amount of that is all the zope and lazr.
dependencies that are needed by launchpadlib (not required for bzr itself.)
With a fully hot cache, and running the minimal bzr command:
time bzr rocks --no-plugins
real 0m0.395s
vs
real 0m0.195s
So about 400ms to startup versus 200ms if I use the packaged version of
bzr (which has a very small search path).
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxlm0kACgkQJdeBCYSNAAMSEgCfW24XNG3h20UkFdEODNMob6uR
nisAoLes/usoHd1YRDIkzxfIJohPjSer
=YO9b
-----END PGP SIGNATURE-----
More information about the Python-Dev
mailing list