Status: New
Owner: ----
New issue 2740 by [email protected]: r15156 slowed some array code WAY
down
http://code.google.com/p/v8/issues/detail?id=2740
Repro below.
I have a very hot loop in my code which got REALLY slow at r15156. It used
to
compile to nicely optimized typed array writes, and now uses
StoredKeyGeneric.
Uncomment the "w |= 0" line or run with --notrack_double_fields to make it
fast (52ms vs. 2ms on my machine).
Thanks,
Ryan
function A(v) {
this.val = v;
}
var a = new A(.5);
var buff = new Uint8Array(10000);
var s = new A(100);
var start = Date.now();
for (var i =0 ; i < 10000; i++) {
clearDiag(buff, s);
}
print(Date.now() - start);
function clearDiag(buff, size) {
var w = size.val;
//w |= 0;
for (var i = 0; i < w; i++) {
buff[i + i * w] = 0;
}
};
--
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.