3 ms·
I should have been more clear. What's the benefit of leaving automatic storage C++ object memory uninitialized?
by loeg 8y ago
I should have been more clear. What's the benefit of leaving automatic storage C++ object memory uninitialized?
- saagarjha 8y agoIt's fast?
- loeg 8y agoThe proposal would already accepti a performance tradeoff to initialize memory of uninitialized "trivial" variables. I'm not sure why you would want to draw a line in the sand at trivial variables only. What makes non-trivial uninitialized object memory higher penalty or lower risk?