Repository navigation
Document compatibility and determinism guarantees in zstd.h - #5075
Conversation
|
Thanks, this will be a useful reference. Note that three statements promise a bit more than zstd guarantees today: 1. Backward compatibility. "Every zstd decompressor can decode any frame produced by any zstd compressor from v1.0 onward" is a bit broader than backward compatibility: it also covers old decompressors decoding frames from newer compressors. Suggestion, which sticks to backward compatibility: "Every zstd decompressor can decode frames produced by any earlier zstd compressor, back to v1.0." 2. 32-bit vs 64-bit. Since v1.6.0, the compressed output can depend on the architecture in multi-threaded mode with windowLog >= 27 (level 22, for example). 3. CDicts created by reference. The buffer-placement issue described for prefixes also applies to Also, #4671 (opened in May, not reviewed) proposes a determinism document for the same issue, #4466. It can be closed once this PR is merged. |
943e125 to
0c9c06f
Compare
|
Cyan4973
left a comment
There was a problem hiding this comment.
Thanks, all points addressed. LGTM.
One small nit: --long alone uses windowLog 27, which the default limit accepts. The example could be --long=31.
Add "Compatibility" and "Determinism" sections to the header, after the Introduction: * Compatibility: backward compatibility (every decompressor decodes data from any v1.0+ compressor, indefinitely), forward compatibility (every v1.x decompressor decodes data from any v1.x compressor), the conditions on those guarantees, a pointer to doc/decompressor_errata.md, and the position on third-party implementations of RFC 8878. * Determinism: what compressor output does and does not depend on, and the limits of the guarantee (version, parameters, nbWorkers == 0 vs >= 1, streaming directives, dictionaries and prefixes). Regenerate doc/zstd_manual.html.
0c9c06f to
674004a
Compare
Add "Compatibility" and "Determinism" sections to the header, after the Introduction:
Regenerate doc/zstd_manual.html.
Fixes #4466