mimalloc_rust
jemallocator
mimalloc_rust | jemallocator | |
---|---|---|
6 | 2 | |
460 | 316 | |
6.3% | 4.5% | |
6.2 | 5.4 | |
7 days ago | 2 days ago | |
Rust | Rust | |
MIT License | GNU General Public License v3.0 or later |
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.
mimalloc_rust
-
Rust std:fs slower than Python
> I wish Rust would switch to mimalloc or the latest tcmalloc (not the one in gperftools).
That's nonsensical. Rust uses the system allocators for compatibility, not because they're good (they were not when Rust switched away from jemalloc, and they aren't now).
If you want to use mimalloc in your rust programs, you can just set it as global allocator, that takes all of three lines: https://github.com/purpleprotocol/mimalloc_rust#usage
-
Hey Rustaceans! Got a question? Ask here (15/2023)!
Context: When using mimalloc as global allocator, linking with crt-static fails with the following error:
-
Tips on scaling a monolithic Rust web server?
Use an optimized memory allocator, my choice is mimalloc. It wins every time I compare it, even against jemalloc (not to mention it supports arena hardening which is good for security).
-
Rust Mimalloc v0.1.30 has just been released!
Version 0.1.19 of the Rust wrapper for the mimalloc memory allocator has just been released!
-
Maintenance status (jemallocator)
I'll mention that mimalloc (+ Rust wrapper) is great alternative to jemalloc.
- Introducing Rust Bindings for the Scudo Hardened Allocator
jemallocator
-
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?
snmalloc - Message passing based allocator
rust-scudo
mimalloc - mimalloc is a compact general purpose allocator with excellent performance.
jemalloc
jemallocator - Rust allocator using jemalloc as a backend
rust - Empowering everyone to build reliable and efficient software.
Rustlings - :crab: Small exercises to get you used to reading and writing Rust code!
rkyv - Zero-copy deserialization framework for Rust
rfc-leadership-council - RFCs for changes to Rust
tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...