mtrebi/memory-allocators
Custom memory allocators in C++ to improve the performance of dynamic memory allocation observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 98
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3571
- days_rel: n/a
- days_push: 13
- n_releases_24m: 0
Adoption not part of the score
1992 stars · 171 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A C++ library implementing several custom memory allocators (linear, stack, pool, and free list) as faster alternatives to malloc/free. It includes benchmarks comparing time and space complexity of each allocator.
Use cases
- replace malloc with a faster custom allocator in C++
- implement a pool allocator for fixed-size objects
- learn how memory allocators work internally
- benchmark allocator performance against malloc
- reduce allocation overhead in a game engine
- manage dynamic memory with a stack allocator
When to choose
- you need fine-grained control over heap allocation performance
- you're learning how custom allocators are implemented
- your workload has predictable allocation patterns suited to pools or stacks
When to avoid
- you need a production-hardened, general-purpose allocator
- your project requires a widely tested allocator with long-term support
- you need thread-safe allocators out of the box
Facets
library · maturity maintenance
benchmarking developer-tools performance developer-tools cpp cross-platform memory-allocators pool-allocator stack-allocator linear-allocator free-list-allocator educational memory algorithms
1 source
- readme: https://github.com/mtrebi/memory-allocators · fetched 2026-08-28 · 5be92a79aabb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mtrebi/memory-allocators | main | 76 |
For agents
markdown · JSON · MCP: product_card(name="mtrebi/memory-allocators")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem