A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-March/109995.html below:

[Python-Dev] Embedded Python startup is slow

[Python-Dev] Embedded Python startup is slow [Python-Dev] Embedded Python startup is slow"Martin v. Löwis" martin at v.loewis.de
Thu Mar 24 12:18:18 CET 2011
> 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.

Regards,
Martin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4