3 ms·
NaCl is just native machine code with some additional restrictions, AFAIK. It can make use of existing compilers and optimizers. I agree that the binary is pro
by ma2rten 13y ago
NaCl is just native machine code with some additional restrictions, AFAIK. It can make use of existing compilers and optimizers.
I agree that the binary is probably relatively efficient, but a) only if your code deals with 32bit floating point numbers, b) the binary (erm js file) is probably going to be bigger (hence increased download times) c) the compilation does not come for free.
- sanxiyn 13y agoFor file size, see http://mozakai.blogspot.com/2011/11/code-size-when-compiling-to-javascript.html http://mozakai.blogspot.com/2011/11/code-size-when-compiling... Summary: it's comparable, not bigger.