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 brett.cannon
Recipients brett.cannon
Date 2013-11-01.18:08:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383329286.84.0.275876228364.issue18809@psf.upfronthosting.co.za>
In-reply-to
Content
So I tried extracting out the check by implementing a path_mtime() method on FileFinder, but then I realized it would simply be easier to abstract out _os.stat() to _path_stat() and let people cache stat calls at the global level, which would have a side-effect of never refreshing the path cache. Otherwise all of the other experiments I tried with minimizing stat calls didn't buy me much according to the benchmarks.

I have also attached a patch which abstracts all file system code that passed through _os into a class. It didn't buy me much plus added a little overhead thanks to the extra abstraction, so I did not bother to commit it.
History
Date User Action Args
2013-11-01 18:08:06brett.cannonsetrecipients: + brett.cannon
2013-11-01 18:08:06brett.cannonsetmessageid: <1383329286.84.0.275876228364.issue18809@psf.upfronthosting.co.za>
2013-11-01 18:08:06brett.cannonlinkissue18809 messages
2013-11-01 18:08:06brett.cannoncreate