-
Notifications
You must be signed in to change notification settings - Fork 152
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:
- node-npm
- 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:
- node-npm
- python-pip