3 ms·
Yes, minimize malloc in all cases. The difference is that GC languages are fundamentally designed around the concept that it’s cheap and easy to malloc/free. Av
by forrestthewoods 4y ago
Yes, minimize malloc in all cases. The difference is that GC languages are fundamentally designed around the concept that it’s cheap and easy to malloc/free. Avoiding allocations can be excruciatingly difficult.
In C++ you also need to minimize allocations, but it’s radically easier to do in C++ than in C#.