# autohash: force inlining of integer hashing so that the optimizer can see the fast path based on key's size which is known at comptime · gitcafe/zig

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

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

Visibility: public

Requested revision: 54255ee32e1e6c83b04c3e5f2f1dd7e8aa5e0dd7

Requested commit: 54255ee32e1e6c83b04c3e5f2f1dd7e8aa5e0dd7

Commit: 54255ee32e1e6c83b04c3e5f2f1dd7e8aa5e0dd7

Tree: 884c44d1ed779aca0710dccb58529cfe86f3bf22

Author: Sahnvour

Committer: Sahnvour

## Message

```
autohash: force inlining of integer hashing so that the optimizer can see the fast path based on key's size which is known at comptime

otherwise it will always outline the call to hasher.update, resulting in much worse performance

```

## Parents

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

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