An unofficial, read-only Hacker News reader.

Doug Lea's Malloc (opens external site)

33 points by grep_it 3 days ago | gee.cs.oswego.edu | 14 comments on HN

View full thread · View on Hacker News

Comment thread (2)

  1. Considering that global allocators are usually an anti-pattern and that most applications should have component-specific allocators, dlmalloc isn't all that bad when used through its mspace API. Of course, if one doesn't actually need a general allocator, they should simply use an arena allocator.
    Replies (1)
    1. Musl still supports single threaded slab allocations. In Musl, the difference comes down to one lock, some atomics, and a #define. My library extracts out its algorithm and let's you use scoped single and multi threaded Musl allocators freely mixed with each other.