Open
Bug 1085523
Opened 10 years ago
Updated 2 years ago
Improve syntax parsing performance
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
NEW
People
(Reporter: jandem, Unassigned)
References
Details
Our syntax parsing has some room for improvement. For instance, we currently always atomize string literals but for the syntax parser this should not be necessary in most cases (there's some trickiness with the "use strict" and "use asm" directives though). For the (pretty worst case) micro-benchmark below: JSC: 836 ms V8: 1338 ms SpiderMonkey: 1493 ms function g() {} function f() { var geval = eval; var s = "g(3333 + Array(1, 2, 3, 4, '\u1200aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; s += "ffffffffffffffffffff3333333333333333333"; s += "333333333333333333333333333333333'));\n"; for (var i=0; i<20; i++) s += s; s = "function foo() { return 1; " + s + "}"; s.indexOf("zzz"); // flatten var t = new Date; geval(s); print(new Date - t); } f();
Reporter | ||
Updated•10 years ago
|
Summary: Optimize syntax parsing performance → Improve syntax parsing performance
Reporter | ||
Comment 1•9 years ago
|
||
I'm not working on this right now.
Assignee: jdemooij → nobody
Status: ASSIGNED → NEW
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•