Skip to content

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

@isaacs isaacs force-pushed the sort-for-compression branch from bad0364 to 07a5bbb Compare June 28, 2019 22:38
isaacs added 3 commits June 29, 2019 00:20
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 force-pushed the sort-for-compression branch from 07a5bbb to 63d1e3e Compare June 29, 2019 07:20
@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