# std.hash_map: use 7 bits of metadata instead of 6 · gitcafe/zig

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

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

Visibility: public

Requested revision: 2d4d4baa42590803cff8581add325ea3f102ac2a

Requested commit: 2d4d4baa42590803cff8581add325ea3f102ac2a

Commit: 2d4d4baa42590803cff8581add325ea3f102ac2a

Tree: 9f14b2d55c76a71fa7b9ec0c565cfe64ed3be103

Author: Sahnvour

Committer: Andrew Kelley

## Message

```
std.hash_map: use 7 bits of metadata instead of 6

we only effectively need 1 control bit to represent 2 special states for
the metadata (free and tombstone)
this should reduce the number of actual element equality tests, but since
it's very low already, the impact is negligible

```

## Parents

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

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