Feature Request: Support optimization flags in the build actions
- Vorherrschende Sprache
- Python
- Sterne
- 380
- Forks
- 161
- Ø Merge
- 1 T. 1 Std.
- Gemergte PRs (30 T.)
- 2
Beschreibung
**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
Beitragsleitfaden
Rechercherichtung
Das Issue nennt die Build-Actions node-npm und python-pip, aber keine Dateien oder Tests. Beginne damit, die Implementierungen dieser Actions und ihre Build-Ausgabepfade zu lokalisieren; ermittle anschließend, wie jede Optimierung angefordert, bei fehlender Unterstützung abgelehnt und in den resultierenden Artefakten verifiziert wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- node.js, python
- Bereich
- build-system
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100