2 ms·
Malloc is at best a few hundred cycles, that's quite a lot of work if you can keep your data in L1. If you do a bit of work now you can save reallocs later. Th
by mhh__ 5y ago
Malloc is at best a few hundred cycles, that's quite a lot of work if you can keep your data in L1. If you do a bit of work now you can save reallocs later.
Think bigger than changing the coefficient, there probably is no optimal factor.
- mst 5y agoIsn't that basically what slab/pool type allocators help with or am I being an idiot?