diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-05-20 16:13:02 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-05-20 16:13:02 -0400 |
| commit | 64c149ca19cc299485693acbda325eee51d37f28 (patch) | |
| tree | 4722fb13d235122b1e69d78bc19a868c7c52609a /src/analyze.cpp | |
| parent | b1bcdc96ca4451be95caa00fe71aafb578611e34 (diff) | |
| download | zig-64c149ca19cc299485693acbda325eee51d37f28.tar.gz zig-64c149ca19cc299485693acbda325eee51d37f28.zip | |
fields and decls: ArrayList appending, memcpy to ast arena
This makes fields and decl ast nodes part of the Root and ContainerDecl
AST nodes.
Surprisingly, it's a performance regression from using a singly-linked
list for these nodes:
throughput: 76.5 MiB/s => 69.4 MiB/s
However it has much better memory usage:
maxrss: 392 KB => 77 KB
It's also better API for consumers of the parser, since it is a flat
list in memory.
Diffstat (limited to 'src/analyze.cpp')
0 files changed, 0 insertions, 0 deletions
