Message122969
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. |
|
| Date |
User |
Action |
Args |
| 2010-12-01 01:36:00 | ncoghlan | set | recipients:
+ ncoghlan, rhettinger |
| 2010-12-01 01:36:00 | ncoghlan | set | messageid: <[email protected]> |
| 2010-12-01 01:35:59 | ncoghlan | link | issue10593 messages |
| 2010-12-01 01:35:59 | ncoghlan | create | |
|