Skip to main content

Module buffer_pool

Module buffer_pool 

Source
Expand description

Zero-copy buffer pool for GPU-style memory management.

Provides a reuse-oriented pool of byte buffers, inspired by GPU memory management patterns. Buffers are acquired by size and alignment, used by the caller, and released back to the pool rather than freed. Unused buffers older than 60 seconds are evicted by BufferPool::defragment.

Structsยง

BufferPool
A pool of reusable GPU-style byte buffers.
GpuBuffer
A raw byte buffer managed by a BufferPool.
PoolStats
Snapshot of pool health metrics.