[Python-Dev] Caching directory files in import.c
James C. Ahlstrom
jim@interet.com
Wed, 07 Nov 2001 10:18:08 -0500
"James C. Ahlstrom" wrote:
> Looking at the code, I saw that I could do an os.listdir(path),
> and record the directory file names into the same dictionary.
> Then it would not be necessary to perform a large number of
> fopen()'s. The same dictionary lookup is used instead.
Well, I didn't get a lot of HellNo's, so I added the code.
The new patch for import.c is now part of Patch 476047.
There are a lot of other changes too. Please take a look.
No, it is not done yet. Don't install it.
JimA