Re:A Garbage Collector for C and C++
by sitharus on Friday July 10, 2015 @12:17AM
(#9862272)
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.
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.