Skip to main content

Module fast_hash

Module fast_hash 

Source
Expand description

Deterministic fast hashing for engine-internal index keys.

Index keys are minted by the engine itself (RowHandle slots, source indexes, descriptor ids, group coordinates); they are never adversarial input, so the DoS-resistant seeded default buys nothing on the event path and costs a full SipHash round per probe. The default also randomises bucket order per process, which an engine advertising a reproducible environment mode cannot want.

Integer writes take a multiply-xor round; opaque keys such as String codes fall back to byte-wise FNV-1a.

Structs§

FastHasher
Unseeded hasher for engine-minted keys: a multiply-xor round per integer write and FNV-1a over byte writes.

Type Aliases§

FastMap
A HashMap hashed with FastHasher: deterministic across runs, not DoS-resistant.
FastSet
A HashSet hashed with FastHasher: deterministic across runs, not DoS-resistant.