Skip to main content

SHARDS

Constant SHARDS 

Source
pub const SHARDS: usize = 16;
Expand description

Number of independently locked shards in a ShardedCountMinSketch.

A concurrency knob: the total counter budget, the per-row collision rate, and the aging cadence are all held constant across it (see the module docs), so raising or lowering it moves contention and halving granularity without moving any admission or eviction decision. The one quantity it does move is the whole-sketch over-report rate, by SHARDS^(ROWS-1) — negligible at the shipped sizing, and bounded in the module docs.