Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Strip configlet binary before pushing the release #179

Open
NobbZ opened this issue Oct 10, 2020 · 1 comment · May be fixed by #182
Open

Strip configlet binary before pushing the release #179

NobbZ opened this issue Oct 10, 2020 · 1 comment · May be fixed by #182

Comments

@NobbZ
Copy link
Member

NobbZ commented Oct 10, 2020

The linux binary has a size of 11MiB, after applying strip it is down to 7.1 MiB.

This is a reduction by roughly 33%.

Considering that also 8MiB is the magic barrier for binary size in some online/cloud IDE services stripping really could be worth it.

@ee7
Copy link
Member

ee7 commented Oct 10, 2020

I noticed this too.

We can probably use something like:

go build -ldflags '-s -w'

Note that we'd still get good stack traces from panics.

I believe this is the preferred way to strip Go binaries (rather than using strip), and that it's considered safe nowadays. But in the (somewhat distant) past there were problems with stripping them, especially on more obscure platforms. See e.g. here.

But it's still a Go binary - it's never going to be small.

@ekingery ekingery linked a pull request Oct 16, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants