aws / aws/aws-lambda-builders

Feature Request: Support optimization flags in the build actions

Open
#3 2 comments 0 reactions 0 assignees View on GitHub
maintainer/need-response type/feature
Dominant language
Python
Stars
380
Forks
161
Avg merge
1d 1h
Merged PRs (30d)
2

Description

**Description:**
We can support several optimizations to improve the build process. This is a feature request to support optimization flags that can be passed to each build action. If an action cannot support a particular optimization, it should error out:

### Optimization 1: Use prebuilt binaries
**Benefit**: Makes build faster

When building dependencies with native modules, use pre-built binaries that are available locally or download from internet. This saves time in recompiling the same binaries over and over again. It can also make the build more stable because sometimes compilation fails or times out.

**Requested by build actions**:
1. node-npm
1. python-pip

### Optimization 2: Remove unnecessary dependencies
**Benefit**: Produces slim zips

Remove unnecessary dependency libraries, or files or folders from the output artifact. For example, remove tests, test data files, or dependencies that are already available in transitive closure.

**Requested by build actions**:
1. node-npm
1. python-pip

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.