Comment #18 on issue 2513 by [email protected]: life benchmark slowness
http://code.google.com/p/v8/issues/detail?id=2513

does speed it up by 2x. But it is still 7x slower

2x? I'm seeing much more than that:
$ time out/ia32.release/d8 life.js
...
real    0m20.181s
$ time out/ia32.release/d8 life-fixed.js
...
real    0m1.429s
$ diff -u life{,-fixed}.js
--- life.js     2013-07-11 14:21:01.544928672 +0200
+++ life-fixed.js       2013-07-15 09:37:16.448983729 +0200
@@ -2566,7 +2566,7 @@
     i15 = i12;
     i16 = i10;
     do {
- i15 = ((HEAP32[i3 + (((i16 + 32 | 0) % 32 | 0) + i14 << 2) >> 2] | 0) != 0) + i15 | 0; + i15 = (((HEAP32[i3 + (((i16 + 32 | 0) % 32 | 0) + i14 << 2) >> 2] | 0) != 0) | 0) + i15 | 0;
      i16 = i16 + 1 | 0;
     } while ((i16 | 0) <= (i11 | 0));
     i16 = i13 + 1 | 0;

it is equally useful to optimize bool|X as it is bool+X? Both coerce (to an int or to a number)

Unfortunately it's not that easy:
true + 1 = 2
true + "1" = "true1"

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
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