4 ms·
1.7 release was great for finally addressing the issue of ever-growing size of produced binaries. [1] Moreover, some additional improvements were promised in 1.
by old-gregg 10y ago
1.7 release was great for finally addressing the issue of ever-growing size of produced binaries. [1] Moreover, some additional improvements were promised in 1.8 which I was looking forward to.
But after upgrading to 1.8 I am now observing 3-4% binary increase vs 1.7, so the trend is again reversed back to fatter binaries. :(
[1] https://blog.golang.org/go1.7-binary-size https://blog.golang.org/go1.7-binary-size
- OrangeTux 10y agoYou can use upx[1] to compress the binaries. I usually can shrink my binaries by 75%. Read more on this[2] blog post. 1: https://upx.github.io/ https://upx.github.io/ 2: https://blog.filippo.io/shrink-your-go-binaries-with-this-one-weird-trick/ https://blog.filippo.io/shrink-your-go-binaries-with-this-on...