Expand description
Chunk cache with hash-based index and LRU eviction.
The ChunkCache avoids re-traversing B-trees on repeated reads of chunked
datasets. On first access it scans the B-tree once and builds a
HashMap<ChunkCoord, ChunkInfo> (the chunk index). Decompressed chunk
data is cached with LRU eviction controlled by a byte-budget.
Structs§
- Access
Stats - Access pattern statistics tracked by the chunk cache.
- Cache
Aligned Buffer - A byte buffer whose data pointer is aligned to
CACHE_LINE_SIZE. - Chunk
Cache - A per-dataset chunk cache with hash-based index and LRU eviction.
Constants§
- CACHE_
LINE_ SIZE - DEFAULT_
CACHE_ BYTES - Default maximum bytes of decompressed chunk data to cache.
- DEFAULT_
MAX_ SLOTS - Default maximum number of cached decompressed chunks.
Functions§
- align_
to_ cache_ line - Round
sizeup to the next multiple ofCACHE_LINE_SIZE.
Type Aliases§
- Chunk
Coord - Coordinate key for a chunk — the N-dimensional offset vector.