2 unstable releases

Uses old Rust 2015

0.2.0 Jun 5, 2019
0.1.0 Sep 3, 2017

#568 in Memory management

Download history 26/week @ 2024-03-13 25/week @ 2024-03-20 52/week @ 2024-03-27 62/week @ 2024-04-03 16/week @ 2024-04-10 25/week @ 2024-04-17 20/week @ 2024-04-24 16/week @ 2024-05-01 24/week @ 2024-05-08 22/week @ 2024-05-15 30/week @ 2024-05-22 20/week @ 2024-05-29 20/week @ 2024-06-05 19/week @ 2024-06-12 24/week @ 2024-06-19 13/week @ 2024-06-26

78 downloads per month
Used in 5 crates (3 directly)

Apache-2.0/MIT

13KB

object-alloc

Crates.io Docs

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.

No runtime deps