High-performance cache policies and supporting data structures.
Improve byte-level cache efficiency by preferring entries with better value-per-byte when item sizes and miss costs vary.
Each resident entry carries a priority H; eviction removes the smallest H.
A common GDS-style score:
H = (cost / size) + LWhere:
cost: estimated miss penalty (latency, backend pressure, or monetary cost)size: object size in bytesL: global inflation term set to the H of the most recently evicted entryThe inflation term prevents old low-value entries from sticking forever.
K -> EntryMetaH for victim selectionL