Comment #3 on issue 2513 by [email protected]: life benchmark slowness
http://code.google.com/p/v8/issues/detail?id=2513
Thanks for looking into this!
Hmm, adding a ternary operation looks kind of bad in terms of code size,
and could interact poorly with other emscripten optimizations. But how
about replacing e.g.
(i1 | 0) > 0
with
(i1 | 0) > 0 | 0
i.e. casting the boolean to an int using an |0? This also avoids using a
boolean implicitly as an integer. However in a quick test it looks like
this makes things worse on v8, not better? Attached is that version.
Attachments:
life.js 104 KB
--
--
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, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.