[Python-Dev] Issue #11051: system calls per import

"Martin v. Löwis" martin at v.loewis.de
Mon Jan 31 08:33:13 CET 2011

> Maybe also
>    * Read and cache the directory contents and search it ourselves
>      instead of making a system call for every possible name.

I wouldn't do that - I would expect that this is actually slower than
making the system calls, because the system might get away with not
reading the entire directory (whereas it will have to when we explicitly
ask for that).


More information about the Python-Dev mailing list