[PATCH v2] Add malloc micro benchmark

Florian Weimer fweimer@redhat.com
Wed Feb 28 16:16:00 GMT 2018


On 02/28/2018 03:11 PM, Ondřej Bílka wrote:
> Thats rather ineffective, it is easier to start fresh than try to
> maintain rather obsolete allocator. Most of other are faster and more
> space effective because of their layout.

That's not quite true.  Despite its limitations, glibc malloc still 
compares remarkably well to other allocators.  Of course, there are 
workloads where it loses big, but those exist for other allocators, too. 
  People simple don't write blog posts comparing *alloc with glibc 
malloc if glibc malloc provides comparable or better performance because 
it's quite boring.

I think a heap-style allocator which does not segregate allocations of 
different sizes still has its place, and why not provide one in glibc?

Thanks,
Florian



More information about the Libc-alpha mailing list