Module allocation_optimizer

Module allocation_optimizer 

Source
Expand description

Allocation Optimization Utilities

This module provides utilities for reducing heap allocations in conversion code, including buffer pooling and stack-based allocation helpers.

Structs§

BufferPool
Buffer pool for reusable byte buffers
PooledBuffer
RAII guard for pooled buffer
StackBuffer
Stack-based buffer for small allocations
TypedBufferPool
Typed buffer pool for specific types
TypedPooledBuffer
RAII guard for typed pooled buffer
ZeroCopyConverter
Zero-copy conversion utilities

Enums§

AdaptiveBuffer
Conversion buffer that uses stack for small sizes, heap for large
AllocationError