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

Document build flags that reduce binary size #498

Open
bmoffatt opened this issue Apr 8, 2023 · 0 comments
Open

Document build flags that reduce binary size #498

bmoffatt opened this issue Apr 8, 2023 · 0 comments

Comments

@bmoffatt
Copy link
Collaborator

bmoffatt commented Apr 8, 2023

Using the -ldflags=-w flags to remove the debug symbols cuts the size of the binary in half too, seems strange that AWS isn't recommending this as well.

With any non-default build flags, there may be some tradeoff to understand and incorporate into any documentation. Dropping the debug symbols does seem risk free though.

Originally posted by @bmoffatt in #493 (comment)

There's also -tags lambda.norpc that could be documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant