Skip to main content

Module pool

Module pool 

Source
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
PoolConfig
Configuration for memory pool
PoolStats
Pool statistics
PooledBuffer
Buffer handle from pool

Constants§

DEFAULT_MEMORY_LIMIT
Default memory limit (1GB)
SIZE_CLASSES
Standard buffer size classes