# cache_hash: hash function change · gitcafe/zig

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

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

Visibility: public

Requested revision: f540dc1b7ebc1663ef5d3823da4630ff51c697b6

Requested commit: f540dc1b7ebc1663ef5d3823da4630ff51c697b6

Commit: f540dc1b7ebc1663ef5d3823da4630ff51c697b6

Tree: 9ed45cca43ebad7f0328ff88b12e2fe5ab54d837

Author: Frank Denis

Committer: Andrew Kelley

## Message

```
cache_hash: hash function change

This makes the `cache_hash` hash function easier to replace.

BLAKE3 would be a natural fit for hashing large files, but:
- second preimage resistance is not necessary for the cache_hash use cases
- our BLAKE3 implementation is currently very slow

Switch to SipHash128, which gives us an immediate speed boost.

```

## Parents

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

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