Re:Speed of Rust vs. C
by pornel on Saturday March 13, 2021 @01:54PM
(#26448904)
Rust's safety rules also forbid access to uninitialized memory, even if it's just a basic array of bytes. This is an extra protection against accidentally disclosing data from a previous "recycled" allocation.
The issue with this is that 'clever' compilers can optimise out any memset calls you do.