# Sema: improve the types_to_resolve mechanism · gitcafe/zig

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

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

Visibility: public

Requested revision: 01ca841f1227cc3e17169c45318c8d4757a5c0d2

Requested commit: 01ca841f1227cc3e17169c45318c8d4757a5c0d2

Commit: 01ca841f1227cc3e17169c45318c8d4757a5c0d2

Tree: 431768f9bac787fd2568de48fa1d178e98df51df

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: improve the types_to_resolve mechanism

Store `InternPool.Index` as the key instead which means that an AIR
instruction no longer needs to be burned to store the type, and also
that we can use AutoArrayHashMap instead of an ArrayList, which avoids
storing duplicates into the set, potentially saving CPU time.

```

## Parents

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

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