Skip to content

Feature Request: Support optimization flags in the build actions #3

@sanathkr

Description

@sanathkr

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
  2. 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
  2. python-pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions