Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Performance: DateTime::Event::Holiday::US holiday-set test exceeds CPAN timeout

Đang mở
#1,541 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, perl
Lĩnh vực
compilers, performance

Hướng nghiên cứu

Start with the focused t/00-basic.t test in DateTime-Event-Holiday-US-0.02 and reproduce the holiday-list construction on the PerlOnJava JVM and interpreter backends. Compare the recurrence/set enumeration behavior with standard Perl, then verify that the test completes within a practical CPAN timeout without changing its 224 assertions.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Summary

DateTime-Event-Holiday-US-0.02 runs substantially slower on PerlOnJava than on standard Perl when building the combined holiday set. The CPAN tester's 120-second timeout is too short for this test under PerlOnJava.

Reproduction

Distribution: DateTime-Event-Holiday-US-0.02

Focused test: t/00-basic.t (224 assertions)

CPAN random tester run: 20260926-090435-21478

The test reaches:

# Building list of holidays.  This will take a long time.

Results:

  • Standard Perl 5.42.2: all 224 assertions pass in about 16 seconds.
  • PerlOnJava JVM backend: all 224 assertions pass with a 300-second timeout, completing in roughly 3 minutes; it exceeds the tester's 120-second timeout.
  • PerlOnJava interpreter backend: no additional output for 60 seconds after module load and holiday-list construction began.

The same CPAN dependency overlay was used for the PerlOnJava reproduction. The distribution and its dependencies are pure Perl; no native prerequisite is involved.

Expected behavior

The test should complete within a practical CPAN compatibility timeout, closer to standard Perl performance.

Investigation requested

Please identify why recurrence/set enumeration for this workload is so much slower on PerlOnJava, and optimize or otherwise address the regression. The timeout itself is not an infinite hang: the JVM backend eventually completes successfully with a 300-second bound.

Ngôn ngữ chính
Perl
Star
64
Fork
6
Merge trung bình
4 giờ 42 phút
Pull request đã merge (30 ngày)
182

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của fglock/PerlOnJava

Tất cả issue của fglock/PerlOnJava

Issue tương tự

Thêm issue về Perl

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.