3 ms·
Tcmalloc (not the gperftools variant but the new one) and mimalloc would be the 2 I would try first. I am honestly surprised no one has bothered replacing the
by vlovich123 3y ago
Tcmalloc (not the gperftools variant but the new one) and mimalloc would be the 2 I would try first.
I am honestly surprised no one has bothered replacing the system default for distros as a better default allocator would free up RAM since both tcmalloc and mimalloc do a good job of knowing when to release memory back to the OS (not to mention that they’re generally faster allocators anyway).
- jeffbee 3y agoWell, tcmalloc can’t be dynamically loaded, so it can’t be your system allocator. But mimalloc would be worth testing in that role.
- vlovich123 3y agoWhy is that the requirement? Eg if glibc decided to replace its own allocator with tcmalloc, what would be the blocker?