Am 24.03.2011 12:18, schrieb "Martin v. Löwis":
1. Is there anything I can do at compile time to tell Python these files
don't exist and avoid trying to open them?

If you disable dynamic loading of extension modules, the number of stat
calls will go down significantly.

2. Is it possible to make python first try and open the ".pyc" and only
then look for ".py" ?

If you then further reduce sys.path, and zip up the standard library
.pyc files, you get further reductions.

On my embedded ARM system (400MHz ARM926EJ-S, linux 2.6.38) Python
starts up even slower when the standard library is in a zip-file.
The effect is worse when the zip-file is compressed, but the slow-down
is still there if the zip-file is not compressed.

Thomas
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to