Differences between revisions 2 and 3
Revision 2 as of 2005-06-03 17:59:05
Size: 904
Editor: pool-68-160-168-171
Revision 3 as of 2008-11-15 14:00:36
Size: 904
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

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:

  • what modules are imported automatically
  • whether modules that are always imported could be improved/modernized with an eye on efficiency
  • lowering importation dependencies


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

SpeedUpInterpreterStartup (last edited 2008-11-15 14:00:36 by localhost)

Unable to edit the page? See the FrontPage for instructions.