0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

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
This commit is contained in:
Andrew Kelley 2019-05-03 01:23:35 -04:00
commit 3552180143
No known key found for this signature in database
GPG key ID: 7C5F548F728501A9
2 changed files with 33 additions and 24 deletions