High-performance cache policies and supporting data structures.
Spec maturity: reference
Executable oracle:
tests/abstract_models/exact/lru.rs(LruOccupancyModel); shared reference:reference/lru.rs(NaiveLruModel) — same LRU semantics as lru.md.
Fast-LRU is LRU with the same eviction semantics as lru.md. This document records Fast-LRU-specific harness behavior; the deque oracle is shared with LRU.
Same as LRU: MRU-first order: Seq<K> (or timestamp formulation in NaiveLruModel).
Same as LRU: resident, peek_victim (LRU = back), recency_rank, hit.
Same per-Op transitions as lru.md.
| Aspect | Fast-LRU | LRU (LruCore) |
|---|---|---|
GetMut(k) |
Applied via get_mut (promotes on hit) |
No-op in adapter |
| Op strategy | op_strategy_with_get_mut |
standard_op_list |
| Impl | FastLru |
LruCore |
Dual-impl equivalence: dual_impl_tests.rs asserts LruCore vs FastLru agree on contains, peek_victim, recency_rank.