Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

perf: close method-call throughput gap to blead Perl

Aperta
#1,846 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@fglock ci sta già lavorando.

Dal 19/10/2026.

  • #1850 di @fglock — aperta

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
java, perl
Ambito
performance

Direzione di ricerca

Start with the measurement contract in issue #1196 and the existing dev/bench/benchmark_method.pl anchor; establish a pinned blead, JDK, source and JAR hashes, and JVM flags before comparing performance. Build diagnostic workloads, then use CPU, allocation, GC, and HotSpot evidence to identify bottlenecks. Done means the anchor reaches at least 1.00x pinned blead with the 95% interval lower bound at or above 1.00x, while meeting issue #1196’s portfolio contract.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:performance enhancement

Current state

PR #1843 improves the dev/bench/benchmark_method.pl workload through guarded argument unpacking, cached hash-field cells, reduced runtime and frame lookups, and scalar-result reuse. The remaining parity goal is open.

A fresh sequential run from PR head 0d4f883b8437b843c62b30c49d26ffac2c31a231 produced:

  • perl dev/bench/benchmark_method.pl: 340.14 iterations/s, checksum 399600080000.
  • ./jperl dev/bench/benchmark_method.pl: 267.42 iterations/s, checksum 399600080000.
  • PerlOnJava was 0.786x of system Perl in this single run, so it needs about 27% more throughput to reach parity. Treat these as a current snapshot, not a stable estimate; the host was also running test work.

The comparison used the locally installed Perl, not a pinned optimized blead build. The next phase must establish that reference before making parity claims. Existing profiling has sampled RuntimeCode.apply/applyCachedMethod, generated method bodies, hash-field access, warning-bit lookup, and integer scalar construction. These samples identify candidates; they do not prove which cost limits end-to-end throughput.

Next steps

  1. Build a reproducible method benchmark runner following the measurement contract in issue #1196: pin the Perl blead revision, JDK, JAR/source hashes and JVM flags; use deterministic checksums and operation counts; warm to stability; then collect randomized paired measurement windows and confidence intervals.
  2. Split the anchor into diagnostic workloads for no-op dispatch, one-argument dispatch, blessed-hash reads, integer updates, scalar return, and an equivalent inline body. Keep the original method benchmark as the acceptance anchor.
  3. Profile the stable anchor with CPU, allocation, GC and HotSpot inlining/deoptimization evidence. Report exclusive and inclusive costs and allocated bytes per operation. Continue only with bottlenecks that explain a material share of the anchor or portfolio.
  4. Prioritize general call-boundary or primitive-result improvements from that evidence. Keep guarded fallbacks for @_, caller, context, warnings, ties/overload, eval/debugger, exceptions, lvalue returns, non-local control flow, and escaping values.
  5. Add focused semantic coverage before each runtime change; validate Perl-level tests with system Perl and run JVM/interpreter parity checks. Retain exact-parent failure evidence for each regression.
  6. Measure each candidate against pinned blead and the exact parent. Require the method anchor to reach at least 1.00x blead with a 95% interval whose lower bound is at least 1.00x; also meet the portfolio acceptance contract already recorded in issue #1196 before claiming project-wide performance parity.

Related work

Lingua principale
Perl
Stelle
64
Fork
8
Merge medio
5h 44m
PR unite (30g)
203

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fglock/PerlOnJava

Tutte le issue di fglock/PerlOnJava

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.