Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize binary size #15

Merged
merged 26 commits into from
Mar 2, 2024
Merged

Optimize binary size #15

merged 26 commits into from
Mar 2, 2024

Conversation

braheezy
Copy link
Owner

@braheezy braheezy commented Mar 2, 2024

Closes #13

@braheezy
Copy link
Owner Author

braheezy commented Mar 2, 2024

Took too many pipelines to find out that upx --brute breaks the binary on Ubuntu runner (works on my Fedora host).

Anyway, here are the results.

Before:
goqoa_size_before

After:
goqoa_size_after

1 MB is as about as small as a Go binary can get before things get weird.

Thanks: https://github.com/xaionaro/documentation/blob/master/golang/reduce-binary-size.md

@braheezy braheezy merged commit d15471d into main Mar 2, 2024
4 checks passed
@braheezy braheezy deleted the optimize-binary-size branch March 3, 2024 02:34
@braheezy braheezy restored the optimize-binary-size branch March 3, 2024 02:42
@braheezy braheezy deleted the optimize-binary-size branch March 3, 2024 02:42
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.

Optimize binary size
1 participant