[issue10593] LRU Cache with maxsize=None
report at bugs.python.org
Wed Dec 1 02:36:00 CET 2010
Nick Coghlan <ncoghlan at gmail.com> added the comment:
You may still need to use the lock even for the simple unbounded case though - incrementing hits and misses isn't atomic, so the statistics may be miscounted if you get a hit or miss in different threads at the same time.
Alternatively, we could just document the hit/miss statistics as approximate figures for tuning purposes rather than guaranteeing 100% accuracy in all situations.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list