Feature Request: Support optimization flags in the build actions
- Ngôn ngữ chính
- Python
- Star
- 380
- Fork
- 161
- Merge trung bình
- 1 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 2
Mô tả
**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
Hướng dẫn đóng góp
Hướng nghiên cứu
Issue này nêu tên các build action node-npm và python-pip nhưng không chỉ rõ tệp hoặc test nào. Trước tiên, hãy xác định các triển khai của những action đó và các đường dẫn đầu ra của build; sau đó xác định cách mỗi tối ưu hóa được yêu cầu, bị từ chối khi không được hỗ trợ và được xác minh trong các artifact tạo ra.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- node.js, python
- Lĩnh vực
- build-system
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 30/100