by dragontamer · 5y ago · 0 comments
Memory allocation is built to some purpose, and the programmer who uses it should be aware of its problems. There's probably a technical reason why the original glibc malloc does what it does (probably better optimized for low-thread counts)
Allocators like TCMalloc are not significantly worse in single threaded mode. The glibc allocator just isn’t very good.
I have personally fought with the glibc allocator and seen issues with it that don’t exist on other OSes.
If glibc malloc is so bad at something like this I find it hard to believe it would be great at anything important if jemalloc/tcmalloc are not.