[Python-Dev] Importing .pyc in -O mode and vice versa

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Nov 5 02:21:34 CET 2006


Fredrik Lundh wrote:

> well, from a performance perspective, it would be nice if Python looked 
> for *fewer* things, not more things.

Instead of searching for things by doing a stat call
for each possible file name, would it perhaps be
faster to read the contents of all the directories
along sys.path into memory and then go searching
through that?

--
Greg


More information about the Python-Dev mailing list