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ยง
- Buffer
Pool - A pool of reusable GPU-style byte buffers.
- GpuBuffer
- A raw byte buffer managed by a
BufferPool. - Pool
Stats - Snapshot of pool health metrics.