mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-06 20:27:48 +00:00

miri: optimize zeroed alloc When allocating zero-initialized memory in MIR interpretation, rustc allocates zeroed memory, marks it as initialized and then re-zeroes it. Remove the last step. I don't expect this to have much of an effect on performance normally, but in my case in which I'm creating a large allocation via mmap it gets in the way.
For more information about how rustc works, see the rustc dev guide.