Crate zallocator

Source
Expand description

Amortizes the cost of small allocations by allocating memory in bigger chunks.

Modules§

pool
Lock-free allocator pool

Structs§

Buffer
A buffer that is allocated by the zallocator.
Overflow
Overflow represents an error that exceeds the max size (1 << 30) of the chunk allowed to an allocator.
Zallocator
Amortizes the cost of small allocations by allocating memory in bigger chunks.
ZallocatorStats
The stats of allocators

Functions§

allocate_from
Allocate a new allocator by specific reference
release_all
Release all allocators
release_from
Release an allocator by reference
stats
Returns the stats of the allocators

Type Aliases§

Result
type alias for core::result::Result<T, Overflow>