Skip to content
Probabilistic Sketches

Probabilistic Sketches

Cross-process probabilistic sketches

Approximate aggregations - sub-linear memory for the cardinality of values they see.

PrimitiveAnswers
Shared Bit VecDense set membership over a small key space
Shared Bloom Filter“Has key X been seen?” with controlled false-positive rate
Shared Blocked Bloom FilterSame membership at one cache line per query; wins past L3
Shared Count-Min SketchApproximate counts per key without keeping the keys
Shared HyperLogLogDistinct-count estimate with very low memory; one shared HLL accumulates the union across processes (no separate merge step)
Shared HistogramBucketed value distribution (latency, etc.)
Shared Reservoir SamplerUniform random sample from an unknown-size stream

For the prose overview, see shared-sketches .