[issue10593] LRU Cache with maxsize=None
Nick Coghlan
report at bugs.python.org
Wed Dec 1 02:36:00 CET 2010
Nick Coghlan <ncoghlan at gmail.com> added the comment:
Nice!
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>
<http://bugs.python.org/issue10593>
_______________________________________
More information about the Python-bugs-list
mailing list