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

Đang mở
#157 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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 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%.

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pocket-stack/quickjs-oxide

Tất cả issue của pocket-stack/quickjs-oxide

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.