Not planned
Description
.gz
and .zip
formats are quite behind .7z
in terms of compression ratio. Extracted linux and windows 1.15.4 binary releases are compressed by %30+ more (default commandline, on Manjaro, p7zip 16.02-6 package):
tar xf go1.15.4.linux-amd64.tar.gz
7za a go-1.15.4.7z go
tar -cJf go-1.15.4.txz go
# etc.
ls -lh go*{gz,zip,7z,xz}
81M Nov 7 13:27 go-1.15.4.7z
84M Nov 8 00:15 go-1.15.4.txz
116M Nov 6 01:31 go1.15.4.linux-amd64.tar.gz
90M Nov 7 14:06 go-1.15.4-win.7z
92M Nov 8 00:16 go-1.15.4-win.txz
133M Nov 7 14:03 go1.15.4.windows-amd64.zip
7z is widely used & available on all platforms and provides %3 better compression than xz
with default parameters. I propose to switch to it for all archive formats.
Thanks..
Note: Updated to add xz
comparison.
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
martisch commentedon Nov 7, 2020
I would suggest to not mix multiple proposals into a single issue but to create separate issues.
This allows to focus discussions on each issue and also aligns with the proposal process accepting proposals by labeling the whole issue.
While
7z
may be available in general I think it is not in base installations of e.g. MacOS and Windows so this would introduce an additional dependency to bootstrap Go when switching away fromgz
orzip
.If choosing another compression algorithm or container format to reduce download size. Why is
7z
preferable over e.g.xz
which is used by other programming languages (pythong, zig, ...) that providegz
andxz
but not7z
.[-]Binary release compression formats & distribution[/-][+]Binary release compression formats[/+][-]Binary release compression formats[/-][+]all: Binary release compression formats[/+]seankhliao commentedon Nov 28, 2024
We accepted a proposal for zstd in #62446, I don't think we need more