The full set of parameters for decompression. The defaults are
defaultDecompressParams.
The
decompressBufferSize is the size of the first output
buffer, containing the uncompressed data. If you know an exact or
approximate upper bound on the size of the decompressed data then
setting this parameter can save memory. The default decompression
output buffer size is
32k. If your estimate is wrong it does
not matter too much, the default buffer size will be used for the
remaining chunks.
One particular use case for setting the
decompressBufferSize is
if you know the exact size of the decompressed data and want to
produce a strict
ByteString. The compression and decompression
functions use lazy
ByteStrings but if you set the
decompressBufferSize correctly then you can generate a lazy
ByteString with exactly one chunk, which can be converted to a
strict
ByteString in
O(1) time using
concat
. toChunks.