Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort for compression #33

Merged
merged 5 commits into from Jun 29, 2019
Merged

Sort for compression #33

merged 5 commits into from Jun 29, 2019

Conversation

isaacs
Copy link
Contributor

@isaacs isaacs commented Jun 4, 2019

Sort by type for compression benefits

Gzip is best optimized when files containing similar contents are nearby
one another in the string of bytes being compressed.

Sort by extname, then basename, then alphabetically, to increase the
likelihood of similar files being found nearby one another in the
resulting tarball archive.

Fix #30

Gzip is best optimized when files containing similar contents are nearby
one another in the string of bytes being compressed.

Sort by extname, then basename, then alphabetically, to increase the
likelihood of similar files being found nearby one another in the
resulting tarball archive.

Fix #30
@isaacs isaacs merged commit 270f534 into master Jun 29, 2019
@lukekarrys lukekarrys deleted the sort-for-compression branch August 18, 2022 04:09
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.

Sort files by type for better compressibility
1 participant