# Zcu: cache output of \`resolveReferences\` between calls · gitcafe/zig

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

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

Visibility: public

Requested revision: c6842b58d488c236aca74dea82082eec365eb117

Requested commit: c6842b58d488c236aca74dea82082eec365eb117

Commit: c6842b58d488c236aca74dea82082eec365eb117

Tree: c858fc6af4e0a3358c22e5b0f4411e54e003cb8b

Author: mlugg

Committer: mlugg

## Message

```
Zcu: cache output of `resolveReferences` between calls

This not only simplifies the error bundling logic, but also improves
efficiency by allowing the result to be cached between, for instance,
multiple calls to `totalErrorCount`.

```

## Parents

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

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