Skip to main content

SPARSE_OFFSETS_INLINE_CAP

Constant SPARSE_OFFSETS_INLINE_CAP 

Source
const SPARSE_OFFSETS_INLINE_CAP: usize = 32;
Expand description

Inline capacity for the small-vec fast path of SparseOffsetsCache.

Most sparse primary keys carry only a handful of tags, so a linear scan over a short Vec beats a HashMap lookup. Tags beyond this capacity spill into the overflow HashMap.