Execution slow paths: inline-cache misses (Gameboy), typed-array access (zlib), array stores (Sieve)

Abierto
#157 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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 the ic-stats build (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_at path; the dense-array store fast path does not cover this case (likely an Array(n) hole or a write at length).

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pocket-stack/quickjs-oxide

Todos los issues de pocket-stack/quickjs-oxide

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.