Comment #10 on issue 2097 by [email protected]: sha1 compiled with Emscripten runs 10X slower than with SpiderMonkey
http://code.google.com/p/v8/issues/detail?id=2097
As an optimization like vegorov@ suggested in comment #5, check if the result is only used in bit-ops (in which case it can be treated as signed int32)
Ah - that's a great suggestion - I should have realised this earlier! I think many of the instructions should work via an Int32Array aliasing the same underlying ArrayBuffer.
Thanks! -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
