Bug 81100

Summary: Web Inspector: use class name indexes instead of class names when evaluating aggregates
Product: WebKit Reporter: Yury Semikhatsky <yurys>
Component: Web Inspector (Deprecated)Assignee: Yury Semikhatsky <yurys>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch pfeldman: review+

Yury Semikhatsky
Reported 2012-03-14 06:20:48 PDT
Use class name indexes instead of class names when evaluating aggregates. Class name lookup followed by string comparison takes significantly longer time then comparison of the class name indexes. For node type comparison it is also much faster to compare its integer value instead of strings.
Attachments
Patch (5.67 KB, patch)
2012-03-14 06:25 PDT, Yury Semikhatsky
no flags
Patch (7.43 KB, patch)
2012-03-14 08:50 PDT, Yury Semikhatsky
pfeldman: review+
Yury Semikhatsky
Comment 1 2012-03-14 06:25:06 PDT
Yury Semikhatsky
Comment 2 2012-03-14 06:56:10 PDT
Comment on attachment 131835 [details] Patch Please ignore this patch.
Yury Semikhatsky
Comment 3 2012-03-14 08:50:58 PDT
Yury Semikhatsky
Comment 4 2012-03-14 08:52:25 PDT
This patch makes _buildAggregates ~ 35% faster.
Ilya Tikhonovsky
Comment 5 2012-03-14 08:58:16 PDT
Comment on attachment 131863 [details] Patch lgtm
Yury Semikhatsky
Comment 6 2012-03-14 09:20:53 PDT
Note You need to log in before you can comment on or make changes to this bug.