It is not safe, and I am surprised at the speedup, the compiler should be able to generate very similar code with the memcpy version. At least C compilers do. Have you tried replacing the mempcy by __builtin_memcpy, it may give a hint to
the compiler.

another idea in debug would be to compile the simulator itself in release mode:
there are a fair amount of asserts in the decoder and skipping those should
help.

On 2014/02/18 17:35:18, ulan wrote:
PTAL. Is this safe to replace memcpy? This speeds up the simulator by ~20%:

Richards: 51.5 (before)
Richards: 63.9 (after)



https://codereview.chromium.org/169223004/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to