Crates.io | dlmalloc |
lib.rs | dlmalloc |
version | 0.2.7 |
source | src |
created_at | 2018-11-18 14:57:26.880755 |
updated_at | 2024-10-03 17:23:34.587184 |
description | A Rust port of the dlmalloc allocator |
homepage | https://github.com/alexcrichton/dlmalloc-rs |
repository | https://github.com/alexcrichton/dlmalloc-rs |
max_upload_size | |
id | 97450 |
size | 327,658 |
A port of dlmalloc to Rust.
This crate is a port of dlmalloc to Rust, and doesn't rely on C. The primary
purpose of this crate is to serve as the default allocator for Rust on the
wasm32-unknown-unknown
target. At the time this was written the wasm target
didn't support C code, so it was required to have a Rust-only solution.
This allocator is not the most performant by a longshot. It is primarily, I think, intended for being easy to port and easy to learn. I didn't dive too deep into the implementation when writing it, it's just a straight port of the C version.
It's unlikely that Rust code needs to worry/interact with this allocator in general. Most of the time you'll be manually switching to a different allocator :)
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.