# AstGen: slightly better eager-allocating heuristic · gitcafe/zig

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

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

Visibility: public

Requested revision: d10ec6e70dbcf49ba14be549069271e564fec76b

Requested commit: d10ec6e70dbcf49ba14be549069271e564fec76b

Commit: d10ec6e70dbcf49ba14be549069271e564fec76b

Tree: aaf536d93d9e7db99c7c507ae571730fa7331f01

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: slightly better eager-allocating heuristic

Some early ensureCapacity calls to avoid needless reallocations.

```

## Parents

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

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