aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-05-20 16:13:02 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-05-20 16:13:02 -0400
commit64c149ca19cc299485693acbda325eee51d37f28 (patch)
tree4722fb13d235122b1e69d78bc19a868c7c52609a /src/analyze.cpp
parentb1bcdc96ca4451be95caa00fe71aafb578611e34 (diff)
downloadzig-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