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 ncoghlan
Recipients ncoghlan, rhettinger
Date 2010-12-01.01:35:59
SpamBayes Score 0.0018684444
Marked as misclassified No
Message-id <1291167360.6.0.499812041068.issue10593@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-12-01 01:36:00ncoghlansetrecipients: + ncoghlan, rhettinger
2010-12-01 01:36:00ncoghlansetmessageid: <1291167360.6.0.499812041068.issue10593@psf.upfronthosting.co.za>
2010-12-01 01:35:59ncoghlanlinkissue10593 messages
2010-12-01 01:35:59ncoghlancreate