Expand description
bloom-bitset
Zero-dependency probabilistic data structures: 512-bit cache-line-blocked Bloom filter, 4-bit saturating Counting Bloom filter, and HyperLogLog.
Structs§
- Blocked
Bloom Filter - Cache-line-blocked Bloom filter where every lookup and insert touches at most one 64-byte cache line.
- Counting
Bloom Filter - A 4-bit saturating Counting Bloom filter supporting insertion, membership queries, and deletion.
- Hyper
LogLog - HyperLogLog probabilistic distinct-element cardinality estimator using 64-bit hashes.
Constants§
- BLOCK_
BITS - Total bits per cache-line Bloom block (
512). - BLOCK_
WORDS - Number of 64-bit words per 512-bit (64-byte) CPU cache-line Bloom block.
- HLL_
DEFAULT_ PRECISION - Default HyperLogLog precision (
14->16384registers, ~0.81% std error). - HLL_
MAX_ PRECISION - Maximum supported HyperLogLog precision (
65536registers). - HLL_
MIN_ PRECISION - Minimum supported HyperLogLog precision (
16registers).
Functions§
- hash_
key_ pair - Computes two independent 64-bit digests for any
Hashkey.