Replace the 64-bit hash function and add some tests#18
Replace the 64-bit hash function and add some tests#18Zoxc wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
As far as licence, all of aHash is dual Apache 2.0 and MIT. That logic is also giving up a lot of performance in its loop for strings, which I suspect may be important for compilation. If you are interested this might be good to combine with tkaitchuck/aHash#58 which I have not yet started on. |
|
It seems the performance of this has changed over time, now there's mostly regressions:
|
|||||||||||||||||||||||||||||||||||||||
|
@Zoxc do you want to re-benchmark / start a discussion about hashes on zulip? |
This replaces the 64-bit hash function with a new one which performs better for rustc, but still isn't a good hash function.
This also adds some collision test adapted from aHash. It's MIT license claims Amanieu d'Antras as the copyright holder though (probably a copy paste error?). I'll ask @tkaitchuck to license that code under this crate's MIT/Apache 2.0 license.