Re:What is malloc doing, anyway?
by i2talics on Monday November 09, 2026 @01:39PM
(#50429642)
If your takeaway from this was "wow malloc has so much overhead" then you may want to notice the part where they benchmark against glibc malloc and glibc is somewhere between 20-150x faster than their implementation. And that's fine, this exposition is basically what you would learn in an undergraduate systems programming course, but production allocators are able to significantly cut down the amount of work needed to grab an allocation, especially for small ones that occur frequently.
[ Parent
| on HN ]
Re:What is malloc doing, anyway?
by packetlost on Tuesday November 10, 2026 @10:46AM
(#50442018)
> where they benchmark against glibc malloc and glibc is somewhere between 20-150x faster than their implementation
Where are you seeing that?