Skip to content

refactor: remove Deflate pipeline and default to Lzf#117

Merged
ChrisLundquist merged 1 commit into
masterfrom
claude/heuristic-curran
Mar 10, 2026
Merged

refactor: remove Deflate pipeline and default to Lzf#117
ChrisLundquist merged 1 commit into
masterfrom
claude/heuristic-curran

Conversation

@ChrisLundquist
Copy link
Copy Markdown
Owner

Summary

  • Remove the Deflate pipeline (LZ77 + Huffman, ID 0) — it was neither gzip-compatible nor competitive with Lzf
  • Tombstone ID 0 following the established pattern (Lz78R ID 7, Parlz ID 11)
  • Change default pipeline to Lzf across CLI, FFI, auto-selection, and all scripts
  • Rename DEFLATE_MAX_MATCHLZ77_MAX_MATCH (the constant is used broadly as a default cap, not just by Deflate)
  • Delete throughput_deflate and stages_deflate_webgpu_chained benchmarks
  • Keep src/deflate.rs (RFC 1951 inflate for .gz decompression) and src/huffman/ (used by LzSeqH)

Test plan

  • ./scripts/test.sh --quick passes (fmt, clippy, 692 tests)
  • Pre-commit hooks pass (fmt, clippy, tests)
  • Verify pz -d file.gz still works (gzip decompression path unchanged)
  • Verify pz -l old_deflate.pz shows "deflate (removed)" for legacy files
  • Verify pz file.txt defaults to Lzf pipeline

🤖 Generated with Claude Code

The Deflate pipeline (LZ77 + Huffman, ID 0) was neither gzip-compatible
nor competitive with Lzf (LZ77 + FSE). Tombstone ID 0 following the
established pattern of prior removals (Lz78R ID 7, Parlz ID 11).

- Remove Pipeline::Deflate enum variant, tombstone ID 0 in TryFrom<u8>
- Change default pipeline to Lzf in CLI, FFI, auto-selection, and scripts
- Rename DEFLATE_MAX_MATCH → LZ77_MAX_MATCH (used broadly as default cap)
- Delete throughput_deflate and stages_deflate_webgpu_chained benchmarks
- Keep src/deflate.rs (RFC 1951 inflate for .gz decompression)
- Keep src/huffman/ (used by LzSeqH pipeline)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ChrisLundquist ChrisLundquist force-pushed the claude/heuristic-curran branch from 0482a0e to 0d476dd Compare March 10, 2026 09:27
@ChrisLundquist ChrisLundquist merged commit d92f2ca into master Mar 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant