Opened 12 years ago

Last modified 11 years ago

#264 new defect

Python load time is ridiculous

Reported by: ezyang Owned by:
Priority: major Milestone:
Component: misc Keywords: python


If you strace say a Trac FastCGI, you will see Python stat a bazillion files before actually doing anything. This means 1+ second startup times for FastCGIs, and is exacerbated by our more aggressive FastCGI killing.

Change History (6)

comment:1 Changed 12 years ago by ezyang

  • Keywords starter python added

comment:2 Changed 12 years ago by ezyang


geofft suggests demandimport may be useful.

We think this is exacerbated by the high number of Python packages we've installed (both via RPM and easy_install)

comment:3 Changed 12 years ago by ezyang

User which appears to be affected by this issue:

comment:4 Changed 11 years ago by achernya

  • Keywords starter removed

comment:5 Changed 11 years ago by adehnert

Anders pointed out on zephyr: "Hmm, is this better in Python 3.3? They appear to have flipped out and rewritten the import system using modern buzzword-compliant technology such as a “cache”. ". Interested bugfixers may wish to test with Python 3.3.

comment:6 Changed 11 years ago by adehnert

  • Component changed from web to misc
Note: See TracTickets for help on using tickets.