microsoft/snmalloc
Some data may be outdated — see provenance labels.
Message passing based allocator observed · 2026-09-21
Health v2 · maintenance only
87/100
- Activity 95
- Release rhythm 70
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 90
- age_days: 2841
- days_rel: 120
- days_push: 32
- n_releases_24m: 6
Adoption not part of the score
1967 stars · 138 forks observed · 2026-09-21
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
snmalloc is a high-performance, message-passing based memory allocator from Microsoft, usable as a header-only C++ library, via LD_PRELOAD, or from Rust. It excels at cross-thread deallocation and batched frees with lock-free remote deallocation and an optional hardened build with allocation randomisation and metadata protection.
Use cases
- replace glibc malloc with a faster allocator
- speed up multithreaded apps that free memory on other threads
- reduce allocator contention on many-core servers
- use a hardened allocator against heap corruption exploits
- use snmalloc from Rust via the snmalloc-rs crate
- LD_PRELOAD an allocator without recompiling
When to choose
- workloads with cross-thread deallocation or large batch frees
- many-core applications needing scalable allocation
- security-sensitive apps wanting hardened heap features
- you want a drop-in malloc replacement or header-only C++ integration
When to avoid
- tiny single-threaded programs where allocator choice barely matters
- platforms without supported backend abstractions
- you need allocator features like full heap profiling or GC integration
Facets
library · maturity active
caching concurrency developer-tools performance developer-tools microservices windows cpp rust cross-platform memory-allocator malloc message-passing header-only hardened-allocator ld-preload linux macos
1 source
- readme: https://github.com/microsoft/snmalloc · fetched 2026-09-21 · 3efacbb3c88c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| microsoft/snmalloc | main | 87 |
For agents
markdown · JSON · MCP: product_card(name="microsoft/snmalloc")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem