#lru #constant-time #tracking #preallocated #elements #storage

no-std lru-slab

Pre-allocated storage with constant-time LRU tracking

2 releases

0.1.1 May 31, 2024
0.1.0 May 31, 2024

#381 in Data structures

Download history 218/week @ 2024-05-30 18/week @ 2024-06-06 9/week @ 2024-06-13

245 downloads per month

MIT OR Apache-2.0 OR Zlib

15KB
354 lines

lru-slab

License: Apache 2.0 License: MIT License: Zlib

Pre-allocated storage with constant-time LRU tracking

Useful managing elements in an external cache of fixed-size pages, e.g. an array texture in GPU memory.

License

Licensed under any of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be triple licensed as above, without any additional terms or conditions.

No runtime deps