This is a static archive of the Python wiki, which was retired in February 2026 due to lack of usage and the resources necessary to serve it — predominately to bots, crawlers, and LLM companies.
Pages are preserved as they were at the time of archival. For current information, please visit python.org.
If a change to this archive is absolutely needed, requests can be made via the infrastructure@python.org mailing list.

At PyCon 2004 the startup time of the interpreter was analyzed and it was realized that no simple solution existed. Part of the reason was some older code, such as the 'site' module which could stand a rewrite, was not optimized for modern Python. Another issue was other modules that were written in Python that might do better written in C ('warnings'?). It seemed importation of code was the major cause of a slow startup.

So, to make this work, one might need to consider:

Notes

The thing I keep running into is the time it takes the 're' module to load. Python doesn't load that initially by default but it's widely used so its slowness does in practice slow down startup. - Stephan Deibel


2026-02-14 16:13