3 ms·
Why weren't you able to use WASM shared heaps to get zero-copy behavior? AFAIK, you can create a shared memory block between WASM <-> JS: https://developer.mo
by gavinray 7mo ago
Why weren't you able to use WASM shared heaps to get zero-copy behavior?
AFAIK, you can create a shared memory block between WASM <-> JS:
https://developer.mozilla.org/en-US/docs/WebAssembly/Reference/JavaScript_interface/Memory#creating_a_shared_memory https://developer.mozilla.org/en-US/docs/WebAssembly/Referen...
Then you'd only need to parse the SharedArrayBuffer at the end on the JS side