Skip to content

docs(design): zstd stateless-frame mode for batch compression (#1685) - #3700

Merged
oferchen merged 1 commit into
masterfrom
docs/zstd-batch-compatible-1685
May 5, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/zstd-batch-compatible-1685

Conversation

@oferchen

@oferchen oferchen commented May 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Investigates whether zstd's per-frame independent mode can replace zlib for the batch path that breaks under --write-batch (issue Fix Windows GNU EH exports for Rust 1.82 #1684 added the runtime guard).
  • Recommendation: go. Add zstd-frame as a batch-only codec behind a new BatchFlags bit; keep zlib for live wire and for reading upstream-produced batch files.
  • Wire-format constraint preserved: no live wire bytes change. The codec swap is local to the batch file body and one new BatchFlags bit.

Test plan

  • No code changes; docs-only PR.
  • Manual review of docs/design/zstd-batch-compatible-compression.md for cross-references against crates/batch/, crates/protocol/src/wire/compressed_token/, and crates/compress/.
  • Verify cited line numbers track current master after rebase.

Investigates whether zstd's per-frame independent mode can serve as a
batch-compatible compression alternative to the current zlib stream
that breaks under --write-batch (issue #1684's runtime guard).

Recommendation: go. Add zstd-frame as a batch-only codec behind a new
BatchFlags bit; keep zlib for live wire and for reading
upstream-produced batch files. No live wire bytes change.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 5, 2026
@oferchen
oferchen merged commit 7f3385a into master May 5, 2026
8 checks passed
@oferchen
oferchen deleted the docs/zstd-batch-compatible-1685 branch May 6, 2026 18:57
oferchen added a commit that referenced this pull request May 18, 2026
…#3700)

Investigates whether zstd's per-frame independent mode can serve as a
batch-compatible compression alternative to the current zlib stream
that breaks under --write-batch (issue #1684's runtime guard).

Recommendation: go. Add zstd-frame as a batch-only codec behind a new
BatchFlags bit; keep zlib for live wire and for reading
upstream-produced batch files. No live wire bytes change.
oferchen added a commit that referenced this pull request Aug 24, 2026
…#3700)

Investigates whether zstd's per-frame independent mode can serve as a
batch-compatible compression alternative to the current zlib stream
that breaks under --write-batch (issue #1684's runtime guard).

Recommendation: go. Add zstd-frame as a batch-only codec behind a new
BatchFlags bit; keep zlib for live wire and for reading
upstream-produced batch files. No live wire bytes change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant