aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-07-13 20:13:51 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-07-13 20:13:51 -0700
commit14cef9dd3d8074b0dc2ee48a0905300ce6317aed (patch)
tree246220eb1846d00a982c33d8e0fae5b5f4ee150c /src/codegen.cpp
parent204f61d7f5aa7b5e27bdaaab9237fca17096ad3e (diff)
downloadzig-14cef9dd3d8074b0dc2ee48a0905300ce6317aed.tar.gz
zig-14cef9dd3d8074b0dc2ee48a0905300ce6317aed.zip
stage2 parser: split out PrefixOp into separate AST Nodes
This is part of a larger effort to improve the memory layout of AST nodes of the self-hosted parser to reduce wasted memory. Reduction of wasted memory also translates to improved performance because of fewer memory allocations, and fewer cache misses. Compared to master, when running `zig fmt` on the std lib: * cache-misses: 801,829 => 768,624 * instructions: 3,234,877,167 => 3,232,075,022 * peak memory: 81480 KB => 75964 KB
Diffstat (limited to 'src/codegen.cpp')
0 files changed, 0 insertions, 0 deletions