Skip to main content

cpu_zstd_decompress_stream

Function cpu_zstd_decompress_stream 

Source
pub fn cpu_zstd_decompress_stream(body: StreamingBlob) -> StreamingBlob
Expand description

CpuZstd で bodystreaming に decompress した StreamingBlob を返す。

memory peak は zstd window size + chunk size 程度 (typically <10 MiB)。 TTFB は最初の chunk が decompress された時点で client に渡る。

multi-frame 対応: zstd 仕様で「複数 frame の連結 = 1 つの valid な zstd stream」と定義されているため、streaming_compress_cpu_zstd のような per-chunk 圧縮された連結出力もそのまま decode 可能。async_compression の default は single-frame のため、明示的に multiple_members(true) を有効化。