Execution slow paths: inline-cache misses (Gameboy), typed-array access (zlib), array stores (Sieve)
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- performance
調査の方向性
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%.
索引モデルが issue の本文から書いたものです。
説明
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%.
- 主要言語
- Rust
- スター
- 61
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pocket-stack/quickjs-oxide のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 44/100
pocket-stack/quickjs-oxide#192 · コメント 3 件 ·
-
performance.now() bypasses Host and uses std::time::Instant (unsupported on wasm32-unknown-unknown)オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
pocket-stack/quickjs-oxide#165 · コメント 1 件 ·
-
Two public SystemHost types: the core one is always UTC, the host crate's uses the system time zoneオープンenhancement
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
pocket-stack/quickjs-oxide#164 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
pocket-stack/quickjs-oxide#163 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
pocket-stack/quickjs-oxide#158 · コメント 1 件 ·
pocket-stack/quickjs-oxide の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Wait for the IDS correction dialog to settle in the stale-audit test対応中かも @louistrue が今日担当しました。 オープンready
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
dutchman-cad/dutchman#874 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue ready
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MartinPTielemans/ilo#3840 ·
メンテナーはふだん 1 日以内に返信
-
bug file-compat priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
storytold/wordcraft#7248 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信