C++ allocator

Open-source C++ projects categorized as allocator

Top 6 C++ allocator Projects

  • Mesh

    A memory allocator that automatically reduces the memory footprint of C/C++ applications.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • snmalloc

    Message passing based allocator

    Project mention: Snmalloc: A Message Passing Allocator | news.ycombinator.com | 2023-10-11

    https://github.com/microsoft/snmalloc#snmalloc mentions two biggest motivations as:

    > Allocations on one thread are freed by a different thread

    I can imagine one use-case for this: a task that is scheduled from and executed by a work-stealing thread-pool can allocate memory in one thread but by design there's no guarantee that the memory will be necessarily freed from that exact thread. Would that be a good use-case for snmalloc?

    > Deallocations occur in large batches

    This sounds much like a bump allocator use-case but which can do this exact thing by calling a single munmap(addr, len) and unmap multiple allocations all at once.

  • memory

    STL compatible C++ memory allocator library using a new RawAllocator concept that is similar to an Allocator but easier to use and write.

  • o1heap

    Constant-complexity deterministic memory allocator (heap) for hard real-time high-integrity embedded systems. There is very little activity because the project is finished and does not require further changes.

  • metamalloc

    Malloc as a library. Single header for Linux & Windows. Repo also provides a live per-thread HTTP memory profiler as a separate single-header with no dependencies

    Project mention: Metamalloc: Single-header template based general purpose memory allocator lib | news.ycombinator.com | 2024-01-16
  • lfjson

    A memory-optimized and data-oriented JSON library written in C++

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C++ allocator discussion

Log in or Post with

C++ allocator related posts

  • Metamalloc: Single-header template based general purpose memory allocator lib

    1 project | news.ycombinator.com | 16 Jan 2024
  • Snmalloc: A Message Passing Allocator

    5 projects | news.ycombinator.com | 11 Oct 2023
  • I'm wanting to write my first compiler, but getting a little bit mixed up in general.

    3 projects | /r/Compilers | 24 Jun 2023
  • Compacting the Uncompactable: The Mesh Compacting Memory Allocator

    1 project | /r/Zig | 29 Oct 2022
  • [Study Project] A memory-optimized JSON data structure

    4 projects | /r/cpp | 23 Oct 2022
  • QAlloc: A fas, type-aware, dynamic sized pool allocator for c++ and c

    1 project | /r/cpp | 7 Jul 2022
  • QAlloc: A fas, type-aware, dynamic sized pool allocator for c++ and c

    1 project | /r/coolgithubprojects | 7 Jul 2022
  • A note from our sponsor - SaaSHub
    www.saashub.com | 8 Oct 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source allocator projects in C++? This list will help you:

Project Stars
1 Mesh 1,742
2 snmalloc 1,560
3 memory 1,490
4 o1heap 246
5 metamalloc 104
6 lfjson 0

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you konow that C++ is
the 6th most popular programming language
based on number of metions?