Execution slow paths: inline-cache misses (Gameboy), typed-array access (zlib), array stores (Sieve)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- performance
Línea de trabajo
Start with the ic-stats build (qjs --ic-stats) to locate Gameboy cache misses, then profile the execution paths named in the issue: Heap::shape_lookup, typed::fast_get, typed::fast_set, and array::set_at. The issue gives no source files or tests, so trace those entry points and reproduce the three benchmarks before changing anything. Done means all three are within 1.1× QuickJS and no other suite program regresses by more than 2%.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Programs in the suite that run slower than QuickJS 2026-06-04 because of execution, not compilation (perf record, 0.3.0 release build; compiler share under 1% in all three):
| Program | Time vs QuickJS | Hot path |
|---|---|---|
| Octane Gameboy | 2.10× | Heap::shape_lookup 26.4%, property::get_cached 10.8%, property::slot_value 3.4% |
| Octane zlib | 1.27× | typed::fast_get 17.4%, typed::fast_set 5.7% |
| AWFY Sieve | 1.24× | array::set_at 10.8%, property::set_on 3.2%, Heap::set_element 2.9% |
- Gameboy: property reads miss the inline caches and fall to
shape_lookup. Find the sites with theic-statsbuild (qjs --ic-stats): polymorphic or megamorphic sites, or objects in dictionary mode. - zlib: typed-array element reads and writes are out-of-line calls from the loop; the element kind check and access belong in the instruction's fast path.
- Sieve: element stores take the generic
set_atpath; the dense-array store fast path does not cover this case (likely anArray(n)hole or a write atlength).
Acceptance: each program within 1.1× of QuickJS, with no other suite program slower by more than 2%.
- Lenguaje dominante
- Rust
- Estrellas
- 61
- Forks
- 2
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 pocket-stack/quickjs-oxide
-
Dificultad 4/5 3-5 días Aptitud para principiantes 44/100
pocket-stack/quickjs-oxide#192 · 3 comentarios ·
-
performance.now() bypasses Host and uses std::time::Instant (unsupported on wasm32-unknown-unknown)Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
pocket-stack/quickjs-oxide#165 · 1 comentario ·
-
Two public SystemHost types: the core one is always UTC, the host crate's uses the system time zoneAbiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
pocket-stack/quickjs-oxide#164 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 56/100
pocket-stack/quickjs-oxide#163 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
pocket-stack/quickjs-oxide#158 · 1 comentario ·
Todos los issues de pocket-stack/quickjs-oxide
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Wait for the IDS correction dialog to settle in the stale-audit testPosiblemente ocupada @louistrue la tomó hoy. Abiertoready
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
dutchman-cad/dutchman#874 ·
Los mantenedores suelen responder en 1 día
-
The address-wrap test for a path that fits a line fails on a machine without Inter installedAbiertobug good first issue ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MartinPTielemans/ilo#3840 ·
Los mantenedores suelen responder en 1 día
-
bug file-compat priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
storytold/wordcraft#7248 · 1 comentario ·
Los mantenedores suelen responder en 4 días