You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
zstd compression: stop using the streaming feature #5111
If the plan is to compress each segment with one-shot Zstd.compress and concatenate
the results, note that the decompress side then has to handle concatenated zstd frames.
On current zstd-ruby this matters:
Zstd.decompress (one-shot) returns only the first frame and silently drops the rest.
Zstd::StreamingDecompress#decompress decodes all frames correctly.
There's an open PR to make the one-shot Zstd.decompress handle concatenated frames as well: SpringMT/zstd-ruby#139.
Until that ships, the safe read path is StreamingDecompress#decompress.
Activity
Watson1978 commentedon Jun 28, 2026
Note for when moving off the streaming feature:
If the plan is to compress each segment with one-shot
Zstd.compressand concatenatethe results, note that the decompress side then has to handle concatenated zstd frames.
On current zstd-ruby this matters:
Zstd.decompress(one-shot) returns only the first frame and silently drops the rest.Zstd::StreamingDecompress#decompressdecodes all frames correctly.There's an open PR to make the one-shot
Zstd.decompresshandle concatenated frames as well: SpringMT/zstd-ruby#139.Until that ships, the safe read path is
StreamingDecompress#decompress.