-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
367 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
This is free and unencumbered software released into the public domain. | ||
|
||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
|
||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
For more information, please refer to <http://unlicense.org/> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
Simple Is Best | ||
==== | ||
|
||
wyhash and wyrand are the ideal 64-bit hash function and PRNG respectively: | ||
|
||
**solid**: wyhash passed SMHasher, wyrand passed BigCrush, practrand. | ||
|
||
**portable**: 64-bit/32-bit system, big/little endian. | ||
|
||
**fastest**: Effecient on all machines, exspecially for short keys. | ||
|
||
**simplest**: In the sense of code size. | ||
|
||
Currently wyhash has 13 language ports and is the default hasher for a hash table of the great Zig language. | ||
|
||
---------------------------------------- | ||
|
||
**Version 4 is ready!** | ||
|
||
big endian support. half code size. faster short key hashing, faster bulk key hashing. | ||
|
||
![](Clipboard05.png) | ||
![](Clipboard06.png) | ||
|
||
**Good Boy Only Benchmark** | ||
|
||
XXH3 was not included as it fails two tests according to SMHasher. | ||
|
||
```C | ||
#define XXH_INLINE_ALL | ||
#define XXH_FORCE_MEMORY_ACCESS 0 | ||
``` | ||
![](Clipboard03.png) | ||
![](Clipboard04.png) | ||
![](Clipboard01.png) | ||
![](Clipboard02.png) | ||
---------------------------------------- | ||
Language Ports: | ||
**C#** https://github.com/cocowalla/wyhash-dotnet | ||
**C++** https://github.com/tommyettinger/waterhash | ||
**GO** https://github.com/dgryski/go-wyhash | ||
**GO** https://github.com/orisano/wyhash | ||
**GO** https://github.com/littleli/go-wyhash16 | ||
**GO** https://github.com/zeebo/wyhash | ||
**GO** https://github.com/lonewolf3739/wyhash-go | ||
**Java** https://github.com/OpenHFT/Zero-Allocation-Hashing | ||
**Rust** https://github.com/eldruin/wyhash-rs | ||
**Swift** https://github.com/lemire/SwiftWyhash | ||
**Swift** https://github.com/lemire/SwiftWyhashBenchmark | ||
**Swift** https://github.com/jeudesprits/SwiftWyhash | ||
**V** https://github.com/vlang/v/tree/master/vlib/hash/wyhash (v4) | ||
**Zig** https://github.com/ManDeJan/zig-wyhash | ||
---------------------------------------- | ||
I thank these names: | ||
Reini Urban | ||
Dietrich Epp | ||
Joshua Haberman | ||
Tommy Ettinger | ||
Daniel Lemire | ||
Otmar Ertl | ||
cocowalla | ||
leo-yuriev | ||
Diego Barrios Romero | ||
paulie-g | ||
dumblob | ||
Yann Collet | ||
ivte-ms |
Oops, something went wrong.