3 ms·
> Why WASM can't give native performance? As with any language, it depends on how good the optimizations are; wasm is designed to be able to be JITted fast, bu
by steveklabnik 9y ago
> Why WASM can't give native performance?
As with any language, it depends on how good the optimizations are; wasm is designed to be able to be JITted fast, but is still fairly new, so there's still stuff left on the table.
Additionally if you're compiling a language to wasm, you're also at the mercy of that compiler as well, so it always depends.
> only 8-10x performance boost
I'll take it ;)
- tmzt 9y ago> Additionally if you're compiling a language to wasm, you're also at the mercy of that compiler as well, so it always depends. and potentially runtime, depending on the language you are compiling from
- dangerbird2 9y agoMost wasm toolchains use clang for c/c++, so poor compiler generation is rarely a significant issue. IIRC, the emscripten toolchain uses musl as the C runtime, which is reasonably performant runtime. Of course, if you write algorithmically inefficient code, no toolchain is going to improve it.