bytecodealliance / bytecodealliance/componentize-py

Wizer pre-initialization

Đang mở
#142 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
277
Fork
51
Merge trung bình
12 giờ 10 phút
Pull request đã merge (30 ngày)
10

Mô tả

Would it be possible to implement the same Wizer pre-initialization for componentize-py, [similar to ComponentizeJS](https://github.com/bytecodealliance/ComponentizeJS?tab=readme-ov-file#wizer-pre-initialization)?

Loading a Python-based Wasm component into memory (using wasmtime) takes many seconds and it would be great if we could find a way to reduce that to hundreds of milliseconds as for the other supported languages.

For comparison, here are the load times for different languages on my MacBook Pro (pretty much an empty component):
- Rust: 50ms
- Go: 60ms
- JS: 800ms
- **Python: 2 seconds**

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách đọc tài liệu về pre-initialization của Wizer trong ComponentizeJS được liên kết trong issue, sau đó truy vết cách componentize-py tải một component Wasm dựa trên Python bằng wasmtime. Đo thời gian tải hiện tại của một component rỗng và xác định công việc hoàn tất khi pre-initialization giảm thời gian này từ vài giây xuống còn hàng trăm mili giây.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python, rust, wasm
Lĩnh vực
backend, performance
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
30/100

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.