7 ms·
For an idea of that overhead, see this older article: https://hacks.mozilla.org/2018/10/calls-between-javascript-and-webassembly-are-finally-fast-%f0%9f%8e%8
by tyingq 3y ago
For an idea of that overhead, see this older article:
https://hacks.mozilla.org/2018/10/calls-between-javascript-and-webassembly-are-finally-fast-%f0%9f%8e%89/ https://hacks.mozilla.org/2018/10/calls-between-javascript-a...
At first, it sounds really promising, like "wow, all the overhead is fixed". Until you get to the bottom and see:
"Currently the only built-ins that we support this for are mostly limited to the math built-ins."
So all those terrible "before" graphs mostly still apply today for most DOM interaction and browser APIs. A few more pieces still aren't done for that to work well. This has some pointers to current state: https://stackoverflow.com/questions/62587845/wasm-dom-access-and-reference-types https://stackoverflow.com/questions/62587845/wasm-dom-access...