rust-lang/rustc-hash
View on GitHub ↗ ★ 605 Rust
Custom hash algorithm used by rustc (plus hashmap/set aliases): fast, deterministic, not secure
3 mentions on Hacker News by 3 people: 1 story, 2 comments · first 2023-12-11 · latest 2024-09-10
20082026
-
There is FxHashMap ( https://github.com/rust-lang/rustc-hash ) which is faster than std::collections::HashMap. With ~100 static entries, o1hash ( https://github.com/rurban/smhasher/blob/master/o1hash.h ) should also work.
comment by 5kg · 2024-09-10 · in A good day to trie-hard: saving compute 1% at a time -
▲ 2
Replace FxHasher with faster and better finalized hashstory by todsacerdoti · 2024-06-18 · 0 comments
-
…a non-cryptographic hash, which takes just 3 x86 instructions and can work on 8 bytes at a time: < https://github.com/rust-lang/rustc-hash/blob/master/src/lib.... >
comment by yakubin · 2023-12-11 · in How many lines of C it takes to execute a + b in Python