aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-28 15:22:03 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-05-28 15:22:03 -0700
commitf5d4fe3e17533f83404c16fbceff0dc7bb12cb18 (patch)
tree2748965ae28b10f937bf0e45b2947861346503a2 /lib/std
parent52b3daa90ee41ba7e059331cf7541eb8570ec236 (diff)
downloadzig-f5d4fe3e17533f83404c16fbceff0dc7bb12cb18.tar.gz
zig-f5d4fe3e17533f83404c16fbceff0dc7bb12cb18.zip
stage1: memoize strings in the AST
Currently, stage1 runs astgen for every comptime function call, resulting in identifier strings being allocated multiple times, wasting memory. As a workaround until the code is adjusted to make astgen run only once per source node, we memoize the result into the AST. * Rename `ir_gen_*` to `astgen_*` - Oops, meant to do this in a separate commit. My bad. * tokenizer: avoid using designated initializer syntax. MSVC does not support it.
Diffstat (limited to 'lib/std')
0 files changed, 0 insertions, 0 deletions