44 ms·
That all depends on how you manually manage memory. Older versions of malloc performed poorly with frequent allocations. Bohem GC allocates in large(ish) slabs
by sitharus 11y ago
That all depends on how you manually manage memory. Older versions of malloc performed poorly with frequent allocations.
Bohem GC allocates in large(ish) slabs, so it can manage many small objects more efficiently than OS malloc. Modern malloc replacements like jemalloc also do this for manual allocation.