4 ms·
While I agree with the sentiment, my impression is that the GP's point is about memory safety rather than performance. So yes, this applies for common patterns
by soedirgo 5y ago
While I agree with the sentiment, my impression is that the GP's point is about memory safety rather than performance. So yes, this applies for common patterns like per-frame memory in games, in which case the "it" is the arena. Otherwise, as a general rule, profile first, then optimize.
- HexDecOctBin 5y ago> this applies for common patterns like per-frame memory in games Even though I went to the trouble to give a non-gamedev example... It's not about optimization, it's about resource management, an alternative to GC or RAII.