# stage2 parsing: rework block statements AST memory layout · gitcafe/zig

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

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

Visibility: public

Requested revision: d57d9448aa322c1818de110adeb3cc69ac5dbcd9

Requested commit: d57d9448aa322c1818de110adeb3cc69ac5dbcd9

Commit: d57d9448aa322c1818de110adeb3cc69ac5dbcd9

Tree: 9bef690df27fc49b002aef664725fb01a892351d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2 parsing: rework block statements AST memory layout

block statements are now directly following the Block AST node rather
than a singly linked list. This had negligible impact on performance:

throughput: 72.3 MiB/s => 72.7 MiB/s

however it greatly improves the API since the statements are laid out in
a flat array in memory.

```

## Parents

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

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