package zstandard
Module Zstandard.With_explicit_contextSource
This module implements compression and decompression with explicitly managed contexts. When compressing or decompressing many times, it is recommended to allocate a context just once, and re-use it for each successive compression operation. This will make workload friendlier for system's memory.
Source
val compress :
Compression_context.t ->
compression_level:int ->
input:Input.t ->
output:'a Output.t ->
'aCompresses input as a single frame. Raises an Error in case of failure.
input should contain an exact number of frames. Raises Error in case of failure.