Author ncoghlan
Recipients ncoghlan, rhettinger
Date 2010-12-01.01:35:59
SpamBayes Score 0.00186844
Marked as misclassified No
Message-id <>

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.
Date User Action Args
2010-12-01 01:36:00ncoghlansetrecipients: + ncoghlan, rhettinger
2010-12-01 01:36:00ncoghlansetmessageid: <>
2010-12-01 01:35:59ncoghlanlinkissue10593 messages
2010-12-01 01:35:59ncoghlancreate