RESOLVED FIXED Bug 81100
Web Inspector: use class name indexes instead of class names when evaluating aggregates
https://bugs.webkit.org/show_bug.cgi?id=81100
Summary Web Inspector: use class name indexes instead of class names when evaluating ...
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.