2 unstable releases

Uses old Rust 2015

0.2.0 Jun 5, 2019
0.1.0 Sep 3, 2017

#445 in Memory management

Download history 13/week @ 2023-12-18 8/week @ 2023-12-25 14/week @ 2024-01-08 10/week @ 2024-01-15 7/week @ 2024-02-05 13/week @ 2024-02-12 28/week @ 2024-02-19 49/week @ 2024-02-26 19/week @ 2024-03-04 34/week @ 2024-03-11 21/week @ 2024-03-18 29/week @ 2024-03-25 90/week @ 2024-04-01

178 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