Enable PGO for Windows builds (x64 and Arm64)
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 122k
- Fork
- 37.4k
- Merge trung bình
- 4 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 272
Mô tả
What is the problem this feature will solve?
Profile Guided Optimization has been available for some time now, and stats from projects that adopt PGO commonly show runtime perf improvements of around 10%. LLVM and MSVC offer PGO when building Windows apps for x64 and Arm64 ABI apps.
This request is to investigate and implement PGO in the CI release jobs when building Windows versions of nodeJS for both Arm64 and x64 ABIs.
Overview of LLVM PGO process:
https://llvm.org/devmtg/2020-09/slides/PGO_Instrumentation.pdf
What is the feature you are proposing to solve the problem?
Add to the CI release jobs:
- Enable PGO instrumentation profiling during first pass build.
- execute nodejs using a predefined test script for most common scenarios to generate profile data
- Relink the app using the profile data for optimization guidance.
What alternatives have you considered?
nonw
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách xác định các job release CI của Windows x64 và Arm64 rồi xem xét quy trình LLVM PGO được liên kết. Được xem là hoàn tất khi cả hai đường dẫn release đều thực hiện một bản build có chèn instrumentation, chạy một script kịch bản Node.js được định nghĩa trước để tạo dữ liệu profile, rồi relink bằng dữ liệu đó cho các bản build được tối ưu hóa.
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
- Lĩnh vực
- build-system, ci-cd, operating-systems
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100