Comment by petesergeant
2 days ago
> In C/C++, this doesn’t happen. When you allocate memory via `malloc()`, you get whatever was previously there.
What would break if the compiler zero'd it first? Do programs rely on malloc() giving them the data that was there before?
That's what calloc() is for
It takes time to zero out memory.