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.
- Zallocator
Stats - 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>