2 unstable releases
Uses old Rust 2015
0.2.0 | Jun 5, 2019 |
---|---|
0.1.0 | Sep 3, 2017 |
#617 in Memory management
88 downloads per month
Used in 5 crates
(3 directly)
13KB
object-alloc
Object allocators in Rust. This crate defines the ObjectAlloc
trait and related types. An object allocator is an allocator which allocates and caches objects of a particular type, allowing for a number of performance improvements over general-purpose allocators that need to be able to service allocation requests of any size and alignment. Since all objects are of the same type, an object allocator can cache freed objects in a constructed state, and can thus allocate by re-using these cached objects. This allows object construction to be elided in certain circumstances, which can provide a further performance improvement.
This crate only defines types - it does not contain any implementations of the ObjectAlloc
trait.