Conversation
Package the documentations as ".tar.zst" instead of ".tar.gz", which cuts
their size by about a third at the same time as it speeds up extraction:
doc tar gzip zstd -19
javascript 28.8 MB 3.38 MB 1.87 MB (-45%)
python~3.14 42.9 MB 7.92 MB 5.34 MB (-33%)
dom 131.5 MB 21.13 MB 14.42 MB (-32%)
Keep downloading the ".tar.gz" of the documentations that have not been
re-packaged since, as the bundle zone holds both formats from now on.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
🟢 Approval recommended
The implementation consistently supports zstd packages while preserving legacy gzip compatibility.
Pull request overview
Migrates documentation bundles from gzip to smaller, faster-to-extract zstd archives while retaining legacy gzip download compatibility.
Changes:
- Adds zstd streaming compression and decompression.
- Prefers
.tar.zstpackages with.tar.gzfallback. - Documents the format migration and adds the required gem.
File summaries
| File | Description |
|---|---|
lib/tasks/docs.thor |
Implements zstd packaging, discovery, upload, and fallback downloads. |
Gemfile |
Adds zstd-ruby to docs dependencies. |
Gemfile.lock |
Locks zstd-ruby 2.0.9. |
docs/maintainers.md |
Documents package formats and compatibility expectations. |
Review details
- Files reviewed: 3/4 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Package the documentations as ".tar.zst" instead of ".tar.gz", which cuts
their size by about a third at the same time as it speeds up extraction:
Keep downloading the ".tar.gz" of the documentations that have not been
re-packaged since, as the bundle zone holds both formats from now on.