Hacker News new | ask | show | jobs
by 5kg 650 days ago
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.

1 comments

Note FxHashMap is just the std HashMap with a different hashing algorithm.