Avoid repeated live-root scans over growing lexical aggregates
Maintainer thường phản hồi trong vòng 1 ngày
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
- 52/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- operating-systems, performance
Hướng nghiên cứu
Start with the reachability tests and the cleanup path around ReachabilityWalker.LiveRootSnapshot.build(), identified by the profiling evidence; inspect the regression work in #1642 for context. Add deterministic coverage that counts snapshot traversal while a lexical root graph grows, preserving weak-reference, scope-exit, and root-mutation behavior. Run the Perl-level test with system Perl, then verify both PerlOnJava backends and the unchanged Data-Tumbler-0.010 stress test.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Data-Tumbler 0.010's t/90-stress.t times out under PerlOnJava although the complete upstream suite passes under system Perl. The stress test emits 4^8 (65,536) leaves and appends each result to a lexical output array.
Evidence
- CPAN random-tester regression run:
20261021-223510-14962. - System Perl 5.42.2, Temurin Java 24.0.2, macOS arm64.
- System Perl: PASS, 4 files / 5 tests; the stress test completes in under one second.
- PerlOnJava at parent
8bc1c9d1708de1381be6c042d6530c0c318e24f4:t/00-basic.t,t/10-simple.t, andt/20-examples.tpass, then the harness produces no output and exceeds its 120-second soft limit while running the stress test. - Reproduction on both PerlOnJava backends: 4^8 exceeds 180 seconds on JVM and 60 seconds on interpreter. On JVM, 4^6 takes 1.2 seconds and 4^7 takes 38.8 seconds, showing a sharp superlinear increase.
- JFR samples identify
ReachabilityWalker.LiveRootSnapshot.build()and its traversal as a major hot path during deferred aggregate cleanup. The stress test's lexical output array grows with every leaf, so repeated live-root snapshots revisit an increasingly large graph. Data::Tumbleris pure Perl and requires no native library, service, or display. This is related to the root-walk performance work in #1642, but this reproduction exercises repeated live lexical snapshots over a growing output graph after that fix.
Acceptance criteria
- Add deterministic regression coverage for repeated cleanup while a lexical root graph grows; assert bounded snapshot traversal work rather than elapsed time.
- Preserve weak-reference, scope-exit, and root-mutation semantics covered by the existing reachability tests.
- Run the new Perl-level test with system Perl, then verify JVM and interpreter behavior.
- The unchanged
Data-Tumbler-0.010stress test completes on both PerlOnJava backends without the observed superlinear slowdown.
- Ngôn ngữ chính
- Perl
- Star
- 64
- Fork
- 8
- Merge trung bình
- 5 giờ 42 phút
- Pull request đã merge (30 ngày)
- 205
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc 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.
Issue khác của fglock/PerlOnJava
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fglock/PerlOnJava#1579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
fglock/PerlOnJava#1863 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
fglock/PerlOnJava#1854 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
fglock/PerlOnJava#1851 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:performance enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
fglock/PerlOnJava#1846 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fglock/PerlOnJava
Issue tương tự
-
observablt-ci
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
elastic/golang-crossbuild#840 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
LMS-Community/slimserver#1701 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
RotherOSS/otobo#6286 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
fix(api): API v3 Product Read ignores request language (lc) for sample products and image URLsCó thể đã có người làm @muntasir-396 đã nhận 4 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
openfoodfacts/openfoodfacts-server#15042 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày