diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-09-21 21:06:32 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-09-22 14:42:27 -0700 |
| commit | e011c31ee8e49bda4052ac9b74d088667dc310ba (patch) | |
| tree | c93088472d3871c3054aeefad72a3957d96b0c6c /src/codegen.zig | |
| parent | 272a57eeedb9593f06434b59a8765c4a2b715792 (diff) | |
| download | zig-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 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
