Mesh
A memory allocator that automatically reduces the memory footprint of C/C++ applications. (by plasma-umass)
jemallocator
Rust allocator using jemalloc as a backend (by tikv)
Mesh | jemallocator | |
---|---|---|
6 | 2 | |
1,706 | 309 | |
0.6% | 4.2% | |
3.7 | 5.4 | |
3 days ago | 5 days ago | |
C++ | Rust | |
Apache License 2.0 | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Mesh
Posts with mentions or reviews of Mesh.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-04.
-
Spotting and Avoiding Heap Fragmentation in Rust Apps
I'm not sure if it's widely used, but Mesh is a C/C++ library that can recover from memory fragmentation. The YouTube video in the README is a great watch.
-
Compacting the Uncompactable: The Mesh Compacting Memory Allocator
From 2019. Here it is on Github: https://github.com/plasma-umass/Mesh
-
Bizarre memory leak caused by tokio runtime
With everyone talking about memory fragmentation, I'd like to mention Mesh, an allocator that can compact aka defrag the heap without any help from the program or compiler. Here's the talk explaining it, "Compacting the Uncompactable" by Bobby Powers.
- Reference Count, Don't Garbage Collect
-
How do applications request for RAM from the CPU?
Mesh by Bobby Powers
jemallocator
Posts with mentions or reviews of jemallocator.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-08.
-
Bizarre memory leak caused by tokio runtime
I was able to replicate the issue with the sample code, but not when using a different allocator (https://github.com/tikv/jemallocator). I understand the default allocator on Linux is malloc (https://doc.rust-lang.org/std/alloc/struct.System.html), and while looking up the differences between the two, it seems like jemalloc handles memory fragmentation much better (https://engineering.linkedin.com/blog/2021/taming-memory-fragmentation-in-venice-with-jemalloc). Maybe that's what's going on?
-
Maintenance status (jemallocator)
There's an actively-maintained "simplified" fork at https://github.com/tikv/jemallocator.
What are some alternatives?
When comparing Mesh and jemallocator you can also consider the following projects:
jemalloc
snmalloc - Message passing based allocator
mimalloc - mimalloc is a compact general purpose allocator with excellent performance.
jemallocator - Rust allocator using jemalloc as a backend
memory - STL compatible C++ memory allocator library using a new RawAllocator concept that is similar to an Allocator but easier to use and write.
rust - Empowering everyone to build reliable and efficient software.
ixy-languages - A high-speed network driver written in C, Rust, C++, Go, C#, Java, OCaml, Haskell, Swift, Javascript, and Python
mimalloc_rust - A Rust wrapper over Microsoft's MiMalloc memory allocator
rmm - RAPIDS Memory Manager
rkyv - Zero-copy deserialization framework for Rust