This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients brett.cannon, pitrou
Date 2012-02-17.18:02:34
SpamBayes Score 4.92678e-06
Marked as misclassified No
Message-id <1329501560.3678.5.camel@localhost.localdomain>
In-reply-to <1329501557.29.0.720554874085.issue14043@psf.upfronthosting.co.za>
Content
> Just to fill you in, the discussion centred on the idea of doing a
> listdir() of the directory the FileFinder was in charge of watching
> and caching that. Then, when it had to look up a file all it had to do
> was stat the directory to look for a change before it simply looked at
> a frozenset of directory contents. That does away with having to stat
> for every file type (directory, module, extension, etc.) and replaces
> it with one upfront listdir() and then a single directory stat per
> lookup.

Ah, then it's basically what my patch does (except that it also computes
all potential module names instead of dumping the os.listdir() result in
a frozenset).
History
Date User Action Args
2012-02-17 18:02:38pitrousetrecipients: + pitrou, brett.cannon
2012-02-17 18:02:34pitroulinkissue14043 messages
2012-02-17 18:02:34pitroucreate