Execution slow paths: inline-cache misses (Gameboy), typed-array access (zlib), array stores (Sieve)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- performance
Hướng nghiên cứu
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%.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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%.
- Ngôn ngữ chính
- Rust
- Star
- 61
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pocket-stack/quickjs-oxide
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 44/100
pocket-stack/quickjs-oxide#192 · 3 bình luận ·
-
performance.now() bypasses Host and uses std::time::Instant (unsupported on wasm32-unknown-unknown)Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
pocket-stack/quickjs-oxide#165 · 1 bình luận ·
-
Two public SystemHost types: the core one is always UTC, the host crate's uses the system time zoneĐang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
pocket-stack/quickjs-oxide#164 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 56/100
pocket-stack/quickjs-oxide#163 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
pocket-stack/quickjs-oxide#158 · 1 bình luận ·
Tất cả issue của pocket-stack/quickjs-oxide
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Wait for the IDS correction dialog to settle in the stale-audit testCó thể đã có người làm @louistrue đã nhận hôm nay. Đang mởready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
dutchman-cad/dutchman#874 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The address-wrap test for a path that fits a line fails on a machine without Inter installedĐang mởbug good first issue ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MartinPTielemans/ilo#3840 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug file-compat priority: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
storytold/wordcraft#7248 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày