Skip to main content

Module zlib_pool

Module zlib_pool 

Source

Structs§

InflateReader
Streaming zlib reader: decompresses input incrementally into a small accumulation buffer, so a caller can parse length-delimited records as they become available and discard consumed bytes — peak memory stays ~the largest single record being buffered, not the whole decompressed blob.

Functions§

decompress_zlib_pooled
Decompress zlib data using a pooled decompressor.
drain_pool
Release the inflate states this thread has parked, returning their memory.
parked_states
Number of inflate states this thread currently keeps parked.
set_pool_retention
Set how many inflate states each thread keeps parked between uses.
warm_pool
Build this thread’s inflate state ahead of its first compressed payload.