Comparison of Arena Architecture in malloc() — egberts
libc malloc serializes multithreaded programs through shared heap metadata. Arena allocators — jemalloc, tcmalloc, mimalloc, snmalloc — replace that bottleneck with per-thread and per-CPU pools, and the tradeoffs decide which one fits your workload.