Repository navigation
Use zstd for the embedded Python download catalog - #22129
Merged
woodruffw merged 1 commit intoOct 1, 2026
Merged
Conversation
Compress the catalog at build time with zstd level 19 and use the buffered streaming decoder when loading it. Reuse the locked zstd version with default features disabled.
woodruffw
force-pushed
the
ww/debloat-python-catalog-zstd
branch
from
October 1, 2026 16:57
df4330b to
a21c726
Compare
woodruffw
marked this pull request as ready for review
October 1, 2026 18:17
woodruffw
added a commit
that referenced
this pull request
Oct 1, 2026
Compress the embedded Python catalog with zstd level 19 and decode it before parsing.
woodruffw
added a commit
that referenced
this pull request
Oct 1, 2026
Compress the embedded Python catalog with zstd level 19 and decode it before parsing.
woodruffw
added a commit
that referenced
this pull request
Oct 1, 2026
## Summary Compress the embedded Python catalog with zstd level 19 at build time and decompress it before parsing. The catalog shrinks from 2,611,893 to 233,814 bytes. Local release builds (`aarch64-apple-darwin`, Rust 1.98.1, default features, fat LTO): | Binary | Before (bytes) | After (bytes) | Reduction | | --- | ---: | ---: | ---: | | With symbols | 55,017,552 | 52,639,088 | 4.32% | | `strip -S -x` | 43,138,056 | 40,743,856 | 5.55% | #22125 adds CodSpeed simulation coverage. #22129 compares zstd with zlib. ## Test Plan - Formatting, Clippy, 31 download tests, and two listing integration tests passed. - All 5,646 catalog records round-trip; all 2,086 listing entries match the uncompressed catalog. - Profiling smoke tests and local CodSpeed harness checks passed.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Switch the embedded Python catalog to zstd level 19.
Local results against #22126 (
aarch64-apple-darwin, Rust 1.98.1):Sizes use release builds with default features, fat LTO, and
strip -S -x. Timings are local Criterion wall time: profiling builds, A/B/B/A order, 100 samples per case per run.Test Plan
fmt, Clippy, 31 download tests, two listing tests, and benchmark smoke tests pass. All catalog records and listing entries match the flate2 build.
Both CodSpeed cases pass local harness checks; no simulation timings were collected.