3 ms·
I don’t see how WASM could possibly be faster than native as somehow it has to be translated into native with native first right?
by klysm 7y ago
I don’t see how WASM could possibly be faster than native as somehow it has to be translated into native with native first right?
- fulafel 7y agoThere are a lot of ways that install-time or JIT compilation can have advantages over static binaries. For the theory see partial evaluation, feedback directed optimization, dynamic recompilation etc. But yes "faster than native" is not precise enough wording for this, should say "faster than conventional statically compiled C" or something.
- k__ 7y agoThe reasoning seems to be like this: Native -> user mode -> system calls -> slow WASM -> kernel mode -> no-system calls -> fast I guess, they can check what a WASM program is doing before they run it, so it doesn't have to be isolated outside of kernel mode.