
Comparison of Malloc() Algorithms
On Hacker News, users compared several malloc implementations, evaluating allocation speed, memory fragmentation, and suitability for various workloads. The discussion covered glibc, jemalloc, tcmalloc and newer options, noting trade‑offs in latency and overhead. Benchmarks in single‑ and multithreaded tests highlighted concurrency benefits of jemalloc and tcmalloc, while glibc excelled in simple scenarios and overall system performance.