Hacker ApprovedDepartments

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

  1. jemalloc

    34 recommend, 11 criticize, 76% approval

    Ranked 1 of 4 by recommenders

    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.

  2. mimalloc

    22 recommend, 7 criticize, 76% approval

    Ranked 2 of 4 by recommenders

    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.

Memory allocators ranked by the number of people who recommend them
Rank
1jemalloc341176%68 yrs3 ownersApproved
2mimalloc22776%9—Approved
3Bumpalo Rust crate8280%5——
4tcmalloc7464%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.