diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-28 15:22:03 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-28 15:22:03 -0700 |
| commit | f5d4fe3e17533f83404c16fbceff0dc7bb12cb18 (patch) | |
| tree | 2748965ae28b10f937bf0e45b2947861346503a2 /lib/std/multi_array_list.zig | |
| parent | 52b3daa90ee41ba7e059331cf7541eb8570ec236 (diff) | |
| download | zig-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/multi_array_list.zig')
0 files changed, 0 insertions, 0 deletions
