aws / aws/aws-lambda-go

Document build flags that reduce binary size

Open
#498 0 comments 1 reaction 0 assignees View on GitHub
documentation
Dominant language
Go
Stars
3.8k
Forks
578
Avg merge
8h 18m
Merged PRs (30d)
1

Description

> 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 https://github.com/aws/aws-lambda-go/issues/493#issuecomment-1500939310_

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.