3 ms·
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' compil
by secondcoming 6y ago
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.
- pornel 6y agoRust'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.