3 ms·
Yep, you still need to bulk copy memory around if it already exists. If you own the memory, though, you can avoid copying (wasm has "import") but you'll need to
by brrrrrm 5y ago
Yep, you still need to bulk copy memory around if it already exists.
If you own the memory, though, you can avoid copying (wasm has "import") but you'll need to manage that manually.
I've found the cleanest approach for me is to have modules allocate space for inputs and outputs and then try to get functions to write directly into the input space.
Either way, nothing available is super friendly for user provided arrays or canvas interactions.