aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-09-23 23:06:08 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-09-23 23:06:08 -0700
commita7088fd9a3edb037f0f51bb402a3c557334634f3 (patch)
treedba5fd9f32b341d1cb64b9813033e1558c1e8d2b /src/Compilation.zig
parent8eff0a0a669dbdacf9cebbc96fdf20536f3073ee (diff)
downloadzig-a7088fd9a3edb037f0f51bb402a3c557334634f3.tar.gz
zig-a7088fd9a3edb037f0f51bb402a3c557334634f3.zip
compiler: packed structs cache bit offsets
Instead of linear search every time a packed struct field's bit or byte offset is wanted, they are computed once during resolution of the packed struct's backing int type, and stored in InternPool for O(1) lookup. Closes #17178
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions