diff options
| author | Marc Tiehuis <marc@tiehu.is> | 2019-08-26 22:32:39 +1200 |
|---|---|---|
| committer | Sahnvour <Sahnvour@users.noreply.github.com> | 2019-08-27 19:42:37 +0200 |
| commit | fbcdf78cbd5ff955d1aec0e55026168eed8d43f6 (patch) | |
| tree | 3ed4bd90f80ec8932c8826f02b2640dcb8ff3df1 /std/hash.zig | |
| parent | 90e921f7a7356cda56e98367687889eb34ce0384 (diff) | |
| download | zig-fbcdf78cbd5ff955d1aec0e55026168eed8d43f6.tar.gz zig-fbcdf78cbd5ff955d1aec0e55026168eed8d43f6.zip | |
Simplify wyhash and improve speed
This removes the exposed stateless variant since the standard variant
has similar speed now.
Using `./benchmark --filter wyhash --count 1024`, the speed change has
changed from:
wyhash
iterative: 4093 MiB/s [6f76b0d5db7db34c]
small keys: 3132 MiB/s [28c2f43c70000000]
to
wyhash
iterative: 6515 MiB/s [673e9bb86da93ea4]
small keys: 10487 MiB/s [28c2f43c70000000]
Diffstat (limited to 'std/hash.zig')
| -rw-r--r-- | std/hash.zig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/std/hash.zig b/std/hash.zig index 3e283b5552..ab3a0ea8f3 100644 --- a/std/hash.zig +++ b/std/hash.zig @@ -29,7 +29,6 @@ pub const CityHash64 = cityhash.CityHash64; const wyhash = @import("hash/wyhash.zig"); pub const Wyhash = wyhash.Wyhash; -pub const WyhashStateless = wyhash.WyhashStateless; test "hash" { _ = @import("hash/adler.zig"); |
