# Revert "std: optimize hash_map probe loop condition" · gitcafe/zig

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

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

Visibility: public

Requested revision: 6d04de706ac0fcb20e1468ed6ac7a88deb7e1744

Requested commit: 6d04de706ac0fcb20e1468ed6ac7a88deb7e1744

Commit: 6d04de706ac0fcb20e1468ed6ac7a88deb7e1744

Tree: 3602471fe2456649c8f163f466fb4d01eb8ca435

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Revert "std: optimize hash_map probe loop condition"

This reverts commit 11803a3a569205d640c7ec0b0aedba83f47a6e64.

Observations from the performance dashboard:
 * strictly worse in terms of CPU instructions
 * slightly worse wall time (but this can be noisy)
 * sometimes better, sometimes worse for branch predictions

Given that the commit was introducing complexity for optimization's
sake, these performance changes do not seem worth it.

```

## Parents

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

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