There are opportunities to improve the performance of the wasm transport layer. It necessarily includes marshalling of data between JavaScript and C++, but I think some of this can be improved as there are some unnecessary allocations of temporary buffers where we can probably just reuse the same buffer, and we may well be doing more copies of data than are strictly necessary.