Closed abtreece closed 4 years ago
While smaller binaries are interesting, I would definitely have to echo https://github.com/kubernetes/kubernetes/pull/28265#issuecomment-230124309 here:
What is the goal? UPX has downsides:
- demand-paging is impossible, resulting in higher overall memory usage
- page-sharing is impossible (e.g. hyperkube), resulting in higher overall memory usage
With that in mind, our current binaries are ~2-3MB each, which IMO is pretty reasonable for a Go binary. If you're looking for something explicitly tiny, su-exec
was created with that exact goal in mind: https://github.com/ncopa/su-exec
Why reinvent gosu?
This does more or less exactly the same thing as gosu but it is only 10kb instead of 1.8MB.
(Just keep in mind it hasn't seen a release with https://github.com/ncopa/su-exec/commit/212b75144bbc06722fbd7661f651390dc47a43d1 included yet)
Ok. Fair enough.
The Ultimate Packer for eXecutables (upx) is a really good way to compress binaries...
The s390x format is unsupported currently.
Bump version to 1.12 because of changes to binaries