bytecodealliance / bytecodealliance/componentize-py

Wizer pre-initialization

未关闭
#142 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
277
派生
51
平均合并
12 小时 10 分钟
30 天内合并 PR
10

描述

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**

贡献指南

打开贡献指南

调研方向

首先阅读 issue 中链接的 ComponentizeJS Wizer 预初始化文档,然后跟踪 componentize-py 如何使用 wasmtime 加载基于 Python 的 Wasm 组件。测量空组件当前的加载时间,并将工作完成定义为:预初始化将其从数秒缩短到数百毫秒左右。

由索引模型根据 Issue 内容生成。

评估

技术栈
python, rust, wasm
领域
backend, performance
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。