News for hackers. Stuff that matters.
Re:Speed of Rust vs. C by secondcoming on Saturday March 13, 2021 @08:17AM (#26446343)
It was quite funny but it's quite likely you'll be reusing memory anyway whether it's on the stack or the heap, no?

The issue with this is that 'clever' compilers can optimise out any memset calls you do.

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.