# compiler: slightly simplify builtin decl memoization · gitcafe/zig

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

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

Visibility: public

Requested revision: b039a8b6155e1eddd9f447ff261d56771c12e038

Requested commit: b039a8b6155e1eddd9f447ff261d56771c12e038

Commit: b039a8b6155e1eddd9f447ff261d56771c12e038

Tree: 0c6c6d44c4e8d6b89a260d61f4472ebc0c9186f5

Author: mlugg

Committer: Matthew Lugg

## Message

```
compiler: slightly simplify builtin decl memoization

Rather than `Zcu.BuiltinDecl.Memoized` being a struct with fields, it
can instead just be an array, indexed by the enum. This allows runtime
indexing, avoiding a few now-unnecessary `inline` switch cases.

```

## Parents

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

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