The best memory allocators, according to hackers
4 memory allocators were recommended on Hacker News between November 2025 and November 2026. We rank them by how many separate people recommend each one, and 2 earn the Hacker Approved badge.
Top picks
The two most recommended memory allocators with the badge. Each figure is 2 people. RecommendsCriticizes One comment
Cuts memory use sharply
Recommended as a drop-in malloc replacement that cuts memory use in long-running programs. Critics say it is a black box and trails newer allocators in multithreaded speed.
Fast, close to glibc speed
Recommended as a fast, easy drop-in malloc replacement with many tuning knobs, though critics report high memory use.
All 4 memory allocators, ranked
Select a column heading to sort. Approval share is recommenders out of everyone who gave an opinion; the tick on each bar marks the 2 to 1 line the badge needs. Months counts the months, out of 13, in which someone recommended it.
| Rank | |||||||
|---|---|---|---|---|---|---|---|
| 1 | jemalloc | 34 | 11 | 76% | 6 | 8 yrs3 owners | Approved |
| 2 | mimalloc | 22 | 7 | 76% | 9 | — | Approved |
| 3 | Bumpalo Rust crate | 8 | 2 | 80% | 5 | — | — |
| 4 | tcmalloc | 7 | 4 | 64% | 4 | — | — |
How we rank
Rank is the number of separate people who recommend a product in a Hacker News comment over the past year. Someone who praises the same memory allocator in five threads counts once.
The badge goes to memory allocators that at least 10 people recommend, with recommenders outnumbering critics at least 2 to 1, recommended in at least 4 of the 13 months.
Rankings are never for sale. We may earn a commission when you buy through our links. It never changes the order.