Consider whether to default short-ranged fixnums to ShortFixnum
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 12/100
- Tipo de issue
- Refactorización
- Claridad
- Necesita aclaración
- Estado de actividad
- Tranquilo
- Área
- compilers, performance
Línea de trabajo
The issue names no files or tests, so start with the benchmark results in the linked jruby/jruby#9379 comment and reproduce the short-range loop timings on your own JVM. Done would mean a maintainer-agreed default for ShortFixnum (keep it or switch it off) with the alternative documented; the choice is a design decision, so discuss it on the issue before writing any code.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
In https://github.com/jruby/jruby/pull/9379#issuecomment-4398960987 I discuss some benchmark findings that show ShortFixnum's constantly widening and narrowing of values impacts the performance of short-ranged loops. This overhead is not enormous on Java 25 (35-40% slower) but on implementations like Java 26 and GraalVM that have better escape analysis the difference can be very large (170% slower on 26, 20x slower on GraalVM).
At the same time, ShortFixnum provides substantial size reductions, so it's a tough call whether to keep the size improvement or prefer the numeric algorithm performance.
We should consider which default is better for users and make sure the alternative is well-documented.
- Lenguaje dominante
- Ruby
- Estrellas
- 3.9k
- Forks
- 951
- Merge medio
- 1 d 20 h
- PR fusionados (30 d)
- 127
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de jruby/jruby
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
ffi stdlib
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
jruby/jruby#4863 · 9 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 42/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Update JNR for jffi cleaner fixAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de jruby/jruby
Issues similares
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
alphagov/tech-docs-gem#580 ·
Los mantenedores suelen responder en 1 día
-
Onboarding form: instructor radio never pre-selected "Yes" (permission vs permissions typo)Posiblemente ocupada @ThakuraAnki la tomó hoy. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
WikiEducationFoundation/WikiEduDashboard#7235 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
zerocracy/judges-action#3021 ·
Los mantenedores suelen responder en 2 días
-
Missing de translation: components/common/CommunitySolution.tsx:communitySolution.passesLatestTestsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 63/100
hitobito/hitobito_bdp#58 ·