# parse-c: improve performance · gitcafe/zig

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

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

Visibility: public

Requested revision: c1642355f0b05f182c0b6d81d294d12be79ad0a8

Requested commit: c1642355f0b05f182c0b6d81d294d12be79ad0a8

Commit: c1642355f0b05f182c0b6d81d294d12be79ad0a8

Tree: 350987257f118c809dc3bca09c02331c537504c8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
parse-c: improve performance

previously we did linear search to find existing global
declarations; now we index using a hash map.

building tetris went from taking 5.3 sec to 0.76 sec

```

## Parents

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

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