News for hackers. Stuff that matters.
Re:New Bare Hash Map: 2X-3X Speedup over SOTA by rurban on Monday March 15, 2021 @04:46AM (#26463758)
Interestingly this patch never was submitted to me. Just saw it now. Will add it asap.

Very interesting is his claim to create wyhash collisions at will. Even with bad keys, not bad seeds!

Re:New Bare Hash Map: 2X-3X Speedup over SOTA by rurban on Monday March 15, 2021 @06:12AM (#26464203)
Added it to smhasher https://github.com/rurban/smhasher/#smhasher

It may be the fastest rust hash, but certainly not faster than other fast hashes. More like 2x slower.

xxh3, t1ha0, wyhash are all much faster on the 2 machines I tested it on, an old 7 years old Intel i5-2300, and a new Ryzen 3200U.

Re:New Bare Hash Map: 2X-3X Speedup over SOTA by kouteiheika on Monday March 15, 2021 @06:42AM (#26464361)
> It may be the fastest rust hash, but certainly not faster than other fast hashes. More like 2x slower.

If it's so much slower then most likely something is wrong.

1) Did you enable the AES instruction when compiling? (IIRC it's disabled by default) 2) When compiling the benchmark did you have cross-language inlining enabled? (IIRC you need to compile your C++ code with a specific version of Clang to get it to inline between Rust and C++)

Re:New Bare Hash Map: 2X-3X Speedup over SOTA by rurban on Monday March 15, 2021 @08:47AM (#26465410)
That might be it. gcc 10 with lto only, not clang. I also saw a lot if weird rust exception like functions brought into it.