microsoft/mimalloc
mimalloc is a compact general purpose allocator with excellent performance. observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 98
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 9
- age_days: 2632
- days_rel: 14
- days_push: 11
- n_releases_24m: 8
Adoption not part of the score
13332 stars · 1165 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
mimalloc is a compact general-purpose memory allocator developed by Microsoft, serving as a drop-in replacement for malloc with excellent performance characteristics. It uses free list sharding techniques to reduce fragmentation and improve locality, and can be dynamically linked into existing programs without code changes.
Use cases
- replace malloc in C/C++ programs for better performance
- reduce memory fragmentation in long-running services
- speed up allocation-heavy workloads
- override the system allocator via LD_PRELOAD without recompiling
- integrate a small allocator into a language runtime
- achieve bounded worst-case latency for allocation
When to choose
- you need a fast, drop-in malloc replacement with minimal code changes
- your application suffers from allocator contention in multithreaded workloads
- you want a small (~10k LOC), portable allocator that is easy to embed in runtimes
- you need excellent worst-case latencies for large-scale services
When to avoid
- you need garbage collection or language-level memory management rather than a malloc replacement
- your platform is not among the supported ports (Windows, macOS, Linux, BSD, WASM, etc.)
- you require specialized allocators like real-time or GPU allocators
- you want a header-only allocator with zero compiled dependencies
Facets
library · maturity stable
developer-tools developer-tools performance operating-systems windows wasm cpp c cross-platform malloc-replacement memory-allocator drop-in runtime-systems low-latency memory-allocation performance linux macos
2 sources
- readme: https://github.com/microsoft/mimalloc · fetched 2026-08-28 · 1de72ad44c85
- homepage: https://microsoft.github.io/mimalloc · fetched 2026-08-29 · b09eab2cbc8d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| microsoft/mimalloc | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="microsoft/mimalloc")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem