Parallel compilations appears to troll hash-for-dep cache
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
- Lĩnh vực
- build-system, performance
Hướng nghiên cứu
Bắt đầu với thay đổi dependency được báo cáo từ ember-cli-htmlbars-inline-precompile 1.0.2 lên 1.0.3 và kiểm tra index.js của hash-for-dep ở dòng 10. Truy vết cách quá trình biên dịch song song gọi hash-for-dep và so sánh các instance cache được tạo trong quá trình rebuild. Hoàn thành có nghĩa là hành vi của cache và regression rebuild kéo dài 80–90 giây được giải thích và được bao phủ bởi một kiểm tra regression phù hợp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I noticed that rebuild time for a particular addon (with a lot of handlebars AST transforms) recently ballooned from a few seconds to 80-90 seconds.
It appears that something (I'm guessing the parallel compile) is causing hash-for-dep to be invoked as multiple modules, instead of a single module. Since the hash-for-dep cache is module scoped, invoking as multiple modules means that the cache is effectively useless.
EDIT: The cache was only created once in ember-cli-htmlbars-inline-precompile@1.0.2. When I upgraded to 1.0.3 is when the multiple caches thing happened. There were other things also upgraded though at the same time.
cc @stefanpenner
- Ngôn ngữ chính
- JavaScript
- Star
- 77
- Fork
- 65
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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.
Issue khác của ember-cli/ember-cli-htmlbars
-
Security: Vulnerable dependency minimatch@3.1.2 [SNYK-JS-MINIMATCH-15309438, CVE-2026-26996] Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
ember-cli/ember-cli-htmlbars#792 ·
-
TemplateFactory type incompatible with setComponentTemplate type from @types/ember__component Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ember-cli/ember-cli-htmlbars#787 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
ember-cli/ember-cli-htmlbars#781 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
ember-cli/ember-cli-htmlbars#779 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ember-cli/ember-cli-htmlbars#774 · 2 bình luận ·
Tất cả issue của ember-cli/ember-cli-htmlbars
Issue tương tự
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
getsentry/sentry-javascript#24577 · 1 bình luận ·
-
curation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
amponce/archive-movie-browser#186 ·
-
light
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
aemdemos/patients-stryker#253 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
clerk/javascript#9852 ·