Comment #10 on issue 2513 by [email protected]: life benchmark slowness
http://code.google.com/p/v8/issues/detail?id=2513
The comments in #9 might be true for other JavaScript engines, but not v8.
When we have only seen booleans in the condition of the ternary, this
results exactly in the code above, which is optimal given our
representation of booleans and how we handle assumptions in general. We
don't determine most things statically, but dynamically, so there is no "we
know that it is XY", but only a "we have only seen XY so far".
As I said: Using a boolean value as an argument of '|' or '&' will kill
performance, so don't do it. Putting effort into supporting ill-typed
JavaScript in a high-performance way is possible, but not a priority for us
currently.
--
--
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.