3 ms·
A key idea is reducing churn, not simply avoiding allocation at all. For example, if the code which renders a frame always needs a four byte array each time it
by DougBTX 9y ago
A key idea is reducing churn, not simply avoiding allocation at all. For example, if the code which renders a frame always needs a four byte array each time it runs, it could reuse the same array each time, rather than allocating then garbage collecting each time.