Tino Lange <tino.lange at isg.de> writes: > Paul Moore wrote: >> As an alternative, would there be any value in cacheing the last stat >> result? In a sequence like this, with multiple calls for the same >> argument, many stat calls would be replaced by one. And it's likely >> that the checking overhead on cache misses would be minimal compared >> to the cost of the stat call, so it's an overall win. > you will never know how long the cached result is true. Files on disk > can change outside your python script.... Doh. Sorry about that - I wasn't thinking hard enough before posting. Back to sleep... Paul. -- Instant gratification takes too long -- Carrie Fisher
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4