# mtrebi/memory-allocators

Custom memory allocators in C++ to improve the performance of dynamic memory allocation

Repository: https://github.com/mtrebi/memory-allocators
Canonical: https://ross.abutalabs.com/products/memory-allocators
Language: C++
License: MIT
License Family: permissive
Topics: memory-allocation, custom-allocator, pool-allocator, stack-allocator, linear-allocator, list-allocator
Last push: 2026-08-20T06:22:24+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 3571, "days_push": 13, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1992, forks 171 (observed 2026-08-28T04:06:03.223188+00:00)

## What it is
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
- artifact type: library
- maturity: maintenance
- function: benchmarking, developer-tools
- domain: performance, developer-tools
- platform: cpp, cross-platform
- tags: memory-allocators, pool-allocator, stack-allocator, linear-allocator, free-list-allocator, educational, memory, algorithms

## Member repositories
- mtrebi/memory-allocators (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:03.223188+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:02:38.230021+00:00, confidence not recorded.
  - readme: https://github.com/mtrebi/memory-allocators (fetched 2026-08-28T04:06:03.223188+00:00, sha 5be92a79aabb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
