diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-05-03 01:23:35 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-05-03 01:25:03 -0400 |
| commit | 3552180143a86432bfec3e71ba2fdd7aaebb0549 (patch) | |
| tree | 1bec759d22529875d4518fb8991e6972b4ad1ffe /std/atomic.zig | |
| parent | f8117a0799f6c691bf65f3b3f4726bf0e6fd6be2 (diff) | |
| download | zig-3552180143a86432bfec3e71ba2fdd7aaebb0549.tar.gz zig-3552180143a86432bfec3e71ba2fdd7aaebb0549.zip | |
optimize `@memset` with `undefined`
When using `@memset` to set bytes to `undefined`, Zig notices this
case and does a single Valgrind client request rather than N.
Speeds up all allocators in safe modes.
Closes #2388
Diffstat (limited to 'std/atomic.zig')
0 files changed, 0 insertions, 0 deletions
