3 ms·
Great comment. I disagree about manual memory management though, you don't have to traverse the heap, unless you use a semiautomatic scheme like reference coun
by Peaker 10y ago
Great comment.
I disagree about manual memory management though, you don't have to traverse the heap, unless you use a semiautomatic scheme like reference counts.
Complex heap structures often aren't a problem for manual memory management.
The scenarios that kill GC aren't ones you typically worry about in manually managed code.
GC frees you from some concerns and gives you much safety but makes performance harder and less predictable. For many programs this is a good trade off.