[Webkit-unassigned] [Bug 15861] New: JavaScriptCore needs to pull constants out of loops
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 6 13:09:22 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=15861
Summary: JavaScriptCore needs to pull constants out of loops
Product: WebKit
Version: 525+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: eric at webkit.org
CC: mjs at apple.com
JavaScriptCore needs to pull constants out of loops
SpiderMonkey beats us on the "validate-input" test dramatically.
validate-input: 58.2% *slower* 115.2ms +/- 1.2% 182.2ms +/- 0.7%
significant
I think much of that is due to them having some magical way to recognize
constants and pull them out of for loops.
in doTest()
There is a "pattern" constant regexp, which we re-compile every time through
the loop. If I hack the test to pull that out of the loop, we get a 14% speed
increase in that one test:
validate-input: 14.6% faster 162.8ms +/- 0.8% 139.0ms +/- 1.1%
significant
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list