Expand description
Predictive LRU Cache with Markov Chain Pre-warming.
Ported from v2’s optimization/predictive_cache.py. Tracks access patterns to predict future accesses, maintaining a rolling window of transitions. When a key is accessed, likely-next keys are pre-warmed for faster retrieval.
Target: 60–70% faster access for frequently used memories.
Structs§
- Cache
Stats - Cache performance statistics.
- Predictive
Cache - Predictive LRU cache with Markov chain pre-warming.