What is schnellru?
masterschnellru is a fast and flexible Least Recently Used (LRU) map implementation in Rust. It is designed to be high-performance, offering up to twice the speed of the lru crate with lower memory overhead.
Key features include:
- Ordered Map Capabilities: Can be used as an ordered map with performance comparable to
indexmap, but with the advantage of $O(1)$ non-perturbing removals (removing an element without changing the relative order of other elements). - Customizable Eviction: Supports custom limiters to control map size based on criteria other than just length or memory usage.
- Environment Support: Supports
no_stdenvironments. - Reliability: Tested with Miri, Clippy, and fuzzing.