3 ms·
It doesn't require care. By default you just put stuff on the stack in C++. You have to go out of your way to use things like ref counting.
by imtringued 7y ago
It doesn't require care. By default you just put stuff on the stack in C++. You have to go out of your way to use things like ref counting.
- voldacar 7y agofor complicated stuff involving multiple threads and shared memory, it's good to plan it out in advance in some way. but you are right that most data can just get stack allocated if you look at their code it's like they have no clue that the stack even exists. seriously. they heap allocate EVERYTHING