Module buffer_pool

Module buffer_pool 

Source
Expand description

Buffer pool system for zero-copy parsing with memory management

This module provides a memory pool system to minimize allocations during JSON parsing, with support for different buffer sizes and reuse strategies.

Structs§

AlignedBuffer
SIMD-aligned buffer with metadata
BufferPool
Buffer pool that manages reusable byte buffers for parsing
CleanupStats
Result of cleanup operation
PoolConfig
Configuration for buffer pool behavior
PoolStats
Statistics about buffer pool usage
PooledBuffer
RAII wrapper for pooled buffer that returns buffer to pool on drop

Enums§

BufferSize
Standard buffer sizes for different parsing scenarios
SimdType
SIMD instruction set types

Functions§

global_buffer_pool
Get global buffer pool instance
initialize_global_buffer_pool
Initialize global buffer pool with custom configuration