Message201927
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. |
|
Date |
User |
Action |
Args |
2013-11-01 18:08:06 | brett.cannon | set | recipients:
+ brett.cannon |
2013-11-01 18:08:06 | brett.cannon | set | messageid: <1383329286.84.0.275876228364.issue18809@psf.upfronthosting.co.za> |
2013-11-01 18:08:06 | brett.cannon | link | issue18809 messages |
2013-11-01 18:08:06 | brett.cannon | create | |
|