Expand description
Memory Pool Management
This module provides memory pools for efficient buffer reuse:
- Buffer size classes (512B, 4KB, 64KB, 1MB, etc.)
- Pool growing and shrinking
- Memory limit enforcement
- Pool fragmentation tracking
- Automatic pool compaction
Structs§
- Pool
- Memory pool for buffer reuse
- Pool
Config - Configuration for memory pool
- Pool
Stats - Pool statistics
- Pooled
Buffer - Buffer handle from pool
Constants§
- DEFAULT_
MEMORY_ LIMIT - Default memory limit (1GB)
- SIZE_
CLASSES - Standard buffer size classes