2 unstable releases

Uses old Rust 2015

0.2.0 Jun 5, 2019
0.1.0 Sep 3, 2017

#617 in Memory management

Download history 9/week @ 2024-07-22 19/week @ 2024-07-29 13/week @ 2024-08-05 21/week @ 2024-08-12 10/week @ 2024-08-19 13/week @ 2024-08-26 19/week @ 2024-09-02 16/week @ 2024-09-09 20/week @ 2024-09-16 53/week @ 2024-09-23 22/week @ 2024-09-30 4/week @ 2024-10-07 18/week @ 2024-10-14 16/week @ 2024-10-21 16/week @ 2024-10-28 38/week @ 2024-11-04

88 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