Memory Allocators
Discussions center on the performance shortcomings of glibc's default malloc allocator, comparisons with alternatives like jemalloc, tcmalloc, mimalloc, and arena/bump allocators, and custom allocation strategies in C/C++.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Is the glibc allocator still that bad? I thought they replaced that ages ago.
Maybe I'm missing something but it doesn't look like memory allocation was carefully considered in this library. For example, there are no custom allocators?
Good for didactic purposes but in the real world you may want to try an allocator like tcmalloc or jemalloc.
Which memory allocator did you end up using?
What's the state of the art in memory allocation?
How would it work with userspace memory allocators?
Why is this not the default malloc shipped with libc's around the world yet?
It's just a well known arena allocator pattern, implemented on OS level.
As someone who has never touched C/C++ or managed their own memory, can you explain how other allocators work and how the performance differs from malloc?
The allocator in question runs in userspace.