[Python-Dev] Importing .pyc in -O mode and vice versa (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Sun Nov 5 04:14:11 CET 2006
- Previous message: [Python-Dev] Importing .pyc in -O mode and vice versa
- Next message: [Python-Dev] Importing .pyc in -O mode and vice versa
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Greg Ewing schrieb:
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?
That should never be better: the system will cache the directory blocks, also, and it will do a better job than Python will.
Regards, Martin
- Previous message: [Python-Dev] Importing .pyc in -O mode and vice versa
- Next message: [Python-Dev] Importing .pyc in -O mode and vice versa
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]