Last modified: Fri Apr 22 2022 07:09:24 GMT+0000 (Coordinated Universal Time)
- WebAssembly uses linear memory model, it’s possible to allocate more pages if needed, but not to reduce the memory once allocated
- There is a lot of glue code generated by Rust’s
wasm_bindgen, it’s fine, but you need to remember it if you use another language to build to wasm
- Avoid copying back and forward objects from the Wasm memory
- If needed, try to pass pointers to the JS so it can read whatever it needs directly from the linear memory
No backlinks found.