anderslanglands / ustr

Fast, FFI-friendly string interning for Rust
Other
151 stars 26 forks source link

Add features to allow dependent to choose hash function #3

Closed anderslanglands closed 4 years ago

anderslanglands commented 5 years ago

We could let a dependent choose the hash function they want to use rather than just forcing CityHash. The simplest way would probably be using features to switch between a list of hashers.

anderslanglands commented 4 years ago

Closing this for now as ahash seems to perform well enough for the intended use case and we can still specify city as a fallback.