Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2024 (2)
20082026
  1. 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.
  2. ▲ 2
    Replace FxHasher with faster and better finalized hash
    story by todsacerdoti · 2024-06-18 · 0 comments
  3. …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.... >