python wasm performance
tags: learning programming wasm
content
- 本身 web assembly 的初衷是在 浏览器 上执行代码 (高性能的语言, C Rust 啥的)
- 但是在 html 里嵌入 python 的 wasm interpreter 来执行 python 的时候, 实际的表现是不如直接跑 javascript 的
- 因为这实际上是在原来的 javascript 上执行一个 wasm 的 python interpreter, 再来执行 python
- 环节变多了, 执行当然就变慢了 (本身我的 python code 也没有被编译成 wasm code)
- web assembly 的 performance 体现在
web assembly + natively compiled language(C Rust) 的这个 combo 上