bytecodealliance / bytecodealliance/componentize-py
Wizer pre-initialization
- 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
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