miniblog.
← Back to all posts
Wilfred Hughes
Mar 1, 2016 at 08:04
Whilst normal hash tables have amortised O(1) lookup, perfect hash tables guarantee O(1)! There's a nifty Rusty lib:
https://github.com/sfackler/rust-phf
GitHub - rust-phf/rust-phf: Compile time static maps for Rust
Compile time static maps for Rust. Contribute to rust-phf/rust-phf development by creating an account on GitHub.