mimalloc

Compact general-purpose memory allocator from Microsoft, usable as a drop-in malloc replacement.

Recommended for allocation speed close to a bump allocator12, for keeping memory use stable under heavy load3, and as a drop-in swap for musl's default malloc.45 No complaints were raised; it suits Rust services, musl-based production systems and high-performance network code.678
The HN verdict, written from 8 cited comments
5recommend
0warn against
Jun 20, 2026first mention
Oct 29, 2026latest mention
Nov 25 – Oct 26
Used forfor musl-based Linuxfor Rust projectsfor network serversmemory allocation in simulation softwarefixing memory growth in desktop executable

Why people recommend it

Performance · 3

Commenters use it for high performance, matching a bump allocator within 5% in one simulation.

“I found that mimalloc does just as good as bumpalo (within 5%)”

“we swap out the default malloc with mimalloc for high performance because why would you not?”

Show 1 more

“it will fit well for a zero-copy and mem aligned reverse proxy”

Musl malloc replacement · 2

Swapped in for musl's default malloc across entire production Linux distros.

“we swap out the default malloc with mimalloc for high performance because why would you not?”

“We use musl+mimalloc by default for our entire production operating systems”

Stable memory use · 1

One service's memory settled at about 60 MB after requests no matter the load.

“Dip's memory, using mimalloc, stabilizes at ~60 MB post request completion no matter how many requests you throw at it.”

switched from default allocatoron “Four Months of Zig”

Caveats and dissent

No one in these comments warned against it.

Often compared with

Who recommends it in their own words

All comments 6

“I found that mimalloc does just as good as bumpalo (within 5%)”

“Dip's memory, using mimalloc, stabilizes at ~60 MB post request completion no matter how many requests you throw at it.”

switched from default allocatoron “Four Months of Zig”

“we swap out the default malloc with mimalloc for high performance because why would you not?”

“switch to FVWM or use some tool like mimalloc”

“We use musl+mimalloc by default for our entire production operating systems”

“it will fit well for a zero-copy and mem aligned reverse proxy”

Threads where it came up

Data: mimalloc.json. Quotes are verbatim; the verdict and theme labels are written by a model from these comments, and every clause links to its sources.

Keyboard shortcuts
j / kNext / previous item
o or EnterOpen selected item
/Search
g hHome
g tTop
g rRising
g cCategories
tToggle dark mode
?This help