Add lru-cache module: LinkedHashMap and hand-rolled DLL LRU, coarse-lock/striped thread-safe variants, broken ReadWriteLock demo, Caffeine reference, 43 tests, JMH harness
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4VQVEJWetTT1dYzyJ
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
Pointer writes per HashMapLruCache operation, by cache size
|
||||
===========================================================
|
||||
|
||||
capacity get(hit) get(miss) put(new) put(new, evicts LRU)
|
||||
10 6 0 4 6
|
||||
1000 6 0 4 6
|
||||
100000 6 0 4 6
|
||||
|
||||
get(hit) is measured on the OLDEST key (position n from the front). Cost is 6 writes anyway: the node is reached through the hash index, not by walking the list.
|
||||
Reference in New Issue
Block a user