RESOLVED FIXED 41213
improved lexer for JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=41213
Summary improved lexer for JavaScriptCore
Zoltan Herczeg
Reported 2010-06-25 07:09:26 PDT
It is time to improve the speed of the lexer.
Attachments
patch (28.60 KB, patch)
2010-06-25 07:10 PDT, Zoltan Herczeg
sam: review-
full patch (29.92 KB, patch)
2010-06-28 00:59 PDT, Zoltan Herczeg
oliver: review+
Zoltan Herczeg
Comment 1 2010-06-25 07:10:07 PDT
Oliver Hunt
Comment 2 2010-06-25 10:48:05 PDT
Comment on attachment 59765 [details] patch This looks sane but i'm in a bus so can't really review properly -- what's the perf win from this?
Sam Weinig
Comment 3 2010-06-25 11:16:37 PDT
Comment on attachment 59765 [details] patch Missing ChangeLog and perf change.
Zoltan Herczeg
Comment 4 2010-06-25 11:25:16 PDT
Performance gain is minimal. I plan to refactor the other parts of lexer (want to remove the majority of the gotos), just not everything in one step, except if you prefer the one big change. TEST COMPARISON FROM TO DETAILS ============================================================================= ** TOTAL **: - 34.0ms +/- 2.6% 33.2ms +/- 2.0% ============================================================================= jquery: ?? 5.1ms +/- 4.4% 5.3ms +/- 6.5% not conclusive: might be *1.039x as slow* 1.3.2: ?? 5.1ms +/- 4.4% 5.3ms +/- 6.5% not conclusive: might be *1.039x as slow* mootools: ?? 5.3ms +/- 6.5% 5.4ms +/- 6.8% not conclusive: might be *1.019x as slow* 1.2.2-core-nc: ?? 5.3ms +/- 6.5% 5.4ms +/- 6.8% not conclusive: might be *1.019x as slow* prototype: - 6.4ms +/- 5.8% 6.1ms +/- 3.7% 1.6.0.3: - 6.4ms +/- 5.8% 6.1ms +/- 3.7% concat: 1.049x as fast 17.2ms +/- 3.3% 16.4ms +/- 2.3% significant jquery-mootools-prototype: 1.049x as fast 17.2ms +/- 3.3% 16.4ms +/- 2.3% significant
Oliver Hunt
Comment 5 2010-06-25 12:54:20 PDT
(In reply to comment #4) > Performance gain is minimal. I plan to refactor the other parts of lexer (want to remove the majority of the gotos), just not everything in one step, except if you prefer the one big change. Nope, i completely agree with this approach. Like Sam said missing a changelog == badness, otherwise this looks good.
Zoltan Herczeg
Comment 6 2010-06-28 00:59:28 PDT
Created attachment 59881 [details] full patch Sorry for the Changelog. I used to many iterations, and maintaining a Changelog is a nightmare after updates.
Oliver Hunt
Comment 7 2010-06-28 12:17:57 PDT
Comment on attachment 59881 [details] full patch r=me
Zoltan Herczeg
Comment 8 2010-06-28 13:23:51 PDT
thanks. Landed in http://trac.webkit.org/changeset/62031 Closing bug.
WebKit Review Bot
Comment 9 2010-06-28 14:24:21 PDT
Note You need to log in before you can comment on or make changes to this bug.