3 ms·
What you say is technically true but can be used to just hand wave away any issue. Things can almost always be improved. Allocators like TCMalloc are not signi
by api 6y ago
What you say is technically true but can be used to just hand wave away any issue. Things can almost always be improved.
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.
- trasz 6y agoIn FreeBSD, the malloc libc uses is jemalloc. Works fine for a general-purpose allocator.
- klodolph 6y agoHistorically the glibc allocator had a number of hooks as well as support for unexec(). I think unexec() has been killed (thankfully) but the glibc allocator API is still not exactly equal to other allocator APIs.