# std.hash: improve small-key hashing in Wyhash · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ab86b2024883f67c0fa06108f66e4e88b98c3163)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ab86b2024883f67c0fa06108f66e4e88b98c3163

Requested commit: ab86b2024883f67c0fa06108f66e4e88b98c3163

Commit: ab86b2024883f67c0fa06108f66e4e88b98c3163

Tree: 137536a6bf4d5c089992a1c38604e5c9f1d9b551

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.hash: improve small-key hashing in Wyhash

Instead of carrying an optimized version of wyhash in the compiler for
small keys, put it into the std lib where it belongs.

...except it does not match the official test cases. This will need to
be fixed before merging into master. This is an extremely
contributor-friendly task.

Related issue: #15916

```

## Parents

- [7c12e064c4e6cd7ea2243a665984e5c49bc94229](https://git.cafe/gitcafe/zig/commit/7c12e064c4e6cd7ea2243a665984e5c49bc94229?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ab86b2024883f67c0fa06108f66e4e88b98c3163?format=markdown)
