Skip to main content

Module hashing

Module hashing 

Source
Expand description

The hash maps and sets rustymath uses. Hashing is foldhash’s fast hasher with its fixed seed (FixedState), with hash_one marked #[inline(always)]. With one seed in every process, maps hash and iterate alike between runs, and instruction counts repeat. hashbrown 0.17 hashes every key through BuildHasher::hash_one, and core’s default body for it has no inline hint, so incremental builds can call it out of line on every lookup.

Structs§

Hashing

Traits§

HashMapExt
new and with_capacity for HashMap, which hashbrown gives only for its default hasher.
HashSetExt
new and with_capacity for HashSet, which hashbrown gives only for its default hasher.

Type Aliases§

HashMap
HashSet