Bug 81033

Summary: Web Inspector: small improvement for HeapSnapshot performance ~12%.
Product: WebKit Reporter: Ilya Tikhonovsky <loislo>
Component: Web Inspector (Deprecated)Assignee: Ilya Tikhonovsky <loislo>
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 yurys: review+

Description Ilya Tikhonovsky 2012-03-13 13:51:35 PDT
%subj%
Comment 1 Ilya Tikhonovsky 2012-03-13 13:55:05 PDT
Created attachment 131709 [details]
Patch
Comment 2 Yury Semikhatsky 2012-03-14 00:04:09 PDT
Comment on attachment 131709 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=131709&action=review

> Source/WebCore/inspector/front-end/HeapSnapshot.js:1028
> +        for (var i = 0; i < this.nodeCount; ++i) {

Instead of replacing usages of the iterator can we change the iterator itself so that it works based on this.nodeIndexes array?
Comment 3 Ilya Tikhonovsky 2012-03-14 07:08:22 PDT
(In reply to comment #2)
> (From update of attachment 131709 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=131709&action=review
> 
> > Source/WebCore/inspector/front-end/HeapSnapshot.js:1028
> > +        for (var i = 0; i < this.nodeCount; ++i) {
> 
> Instead of replacing usages of the iterator can we change the iterator itself so that it works based on this.nodeIndexes array?

It is too tricky to migrate this iterator to nodeIndex.
I'd like to do this in separate patch.
Comment 4 Ilya Tikhonovsky 2012-03-14 07:42:32 PDT
Committed r110698: <http://trac.webkit.org/changeset/110698>