Summary: | Typed arrays are 10X slower than normal classic arrays | ||
---|---|---|---|
Product: | WebKit | Reporter: | Joseph Huckaby <jhuckaby> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Minor | CC: | ap, cmarcelo, fpizlo, ggaren, m.goleb+bugzilla, oliver, shezbaig.wk |
Priority: | P3 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Mac (Intel) | ||
OS: | OS X 10.7 | ||
URL: | http://jsperf.com/read-write-typed-arrays/2 |
Description
Joseph Huckaby
2011-10-22 18:57:08 PDT
Yeah, we know about this. The problem is essentially that WebKit still uses DOM-based typed arrays, which leads to most of the perf issues we see here (essentially they get the worst performance it is possible to achieve in JSC currently). Fix is non-trivial, but it also won't be the hardest thing in the world to achieve. Cool, thanks guys. I figured you had to know about it, just didn't see it in Bugzilla :) I don't see any slowdown in Safari 7.0, has this issue been fixed? This particular bug is believed to have been fixed in Safari 6. There were many additional optimizations afterwards, including a rewrite that happened recently, after Safari 7. I can confirm the speed has greatly improved in Safari 6.1 (I don't have 7 yet). Could you please test with Safari 6.1 and nightly build, as well? http://nightly.webkit.org In the test under http://jsperf.com/read-write-typed-arrays/2 WebKit Nightly is faster than Safari 7, especially in Uint32Array tests. |