#allocator #memory #dynamic #allocation #rest #how

nightly no-std bin+lib elfmalloc

A fast, concurrent, general-purpose allocator

1 unstable release

Uses old Rust 2015

0.1.0 Sep 3, 2017

#102 in #how

Apache-2.0

295KB
5.5K SLoC

Efficient Dynamic Memory Allocation

This crate provides efficient multi-threaded heap allocation both on a per-object (i.e. fixed-size) or dynamic (i.e. malloc-like) basis. Most of the details are currently provided in the crate documentation.

Note that the allocators in this crate only work on 64-bit machines right now. There are currently some ideas on how to add 32-bit support, but any such changes would require serious additions to the allocators' designs.

Note, if you link in this crate to a Rust project (e.g. to use object-specific allocators), you will want to set the use_default_allocator feature. Without this feature, all existing dynamic allocation requests from the rest of the project will be slower.

More Info

Dependencies

~435–720KB
~10K SLoC