kripken/emscripten — pull request #2323 by lovasoa (2014-04-28 03:29:20+00:00)
Title: Performance improvement in ccall and cwrap

functions generated by cwrap are now up to 100 times faster than before.
The most impressive speedups are observed in functions that operate on numbers.

This is at the cost of a longer cwrap function, that doesn't rely on ccall anymore. This adds code duplication. This adds less readable code (javascript code encoded in strings). But it's 100 times faster :)