RESOLVED FIXED Bug 81224
Web Inspector: improve HeapSnapshot._buildReversIndex performance
https://bugs.webkit.org/show_bug.cgi?id=81224
Summary Web Inspector: improve HeapSnapshot._buildReversIndex performance
Yury Semikhatsky
Reported 2012-03-15 09:05:46 PDT
Caching node indexes and node count in local variables instead of calling getters each time reduces the method run time by factor of 1.5
Attachments
Patch (2.73 KB, patch)
2012-03-15 09:07 PDT, Yury Semikhatsky
pfeldman: review+
Yury Semikhatsky
Comment 1 2012-03-15 09:07:26 PDT
Yury Semikhatsky
Comment 2 2012-03-15 09:10:54 PDT
For the WebKit/PerformanceTests/inspector/detailed-heapshots-smoke-test.html test with the patch applied: RESULT heap-snapshot: _buildDominatedNodes= 2857 ms without: RESULT heap-snapshot: _buildDominatedNodes= 4417 ms
Yury Semikhatsky
Comment 3 2012-03-15 09:40:24 PDT
Note You need to log in before you can comment on or make changes to this bug.