aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Cache.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-09-21 21:06:32 +0100
committerAndrew Kelley <andrew@ziglang.org>2023-09-22 14:42:27 -0700
commite011c31ee8e49bda4052ac9b74d088667dc310ba (patch)
treec93088472d3871c3054aeefad72a3957d96b0c6c /lib/std/Build/Cache.zig
parent272a57eeedb9593f06434b59a8765c4a2b715792 (diff)
downloadzig-e011c31ee8e49bda4052ac9b74d088667dc310ba.tar.gz
zig-e011c31ee8e49bda4052ac9b74d088667dc310ba.zip
Sema: optimize comptime @memset by setting all elements at once
Previously, @memset at comptime performed N pointer stores. This is less efficient than just storing a whole array of values at once. The difference can be quite drastic when reinterpreting memory - a test case which is 40s on master branch now takes under a second on a debug compiler build. Resolves: #17214
Diffstat (limited to 'lib/std/Build/Cache.zig')
0 files changed, 0 insertions, 0 deletions