# stage2: improve Type.eql and Type.hash for error sets · gitcafe/zig

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

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

Visibility: public

Requested revision: 9f163310f2bfa4f5289c1db6231089f3be0c9b93

Requested commit: 9f163310f2bfa4f5289c1db6231089f3be0c9b93

Commit: 9f163310f2bfa4f5289c1db6231089f3be0c9b93

Tree: a3e6012d38c15d34c847773c27189c8a4f1edadb

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: improve Type.eql and Type.hash for error sets

 * Reduce branching in Type.eql and Type.hash for error sets.
 * `Type.eql` uses element-wise bytes comparison since it can rely on
   the error sets being pre-sorted.
 * Avoid unnecessarily skipping tests that are passing.

```

## Parents

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

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