it had containmentEdges.length call in the loop. before RESULT heap-snapshot: _calculateObjectToWindowDistance= 117 ms after RESULT heap-snapshot: _calculateObjectToWindowDistance= 36 ms
Created attachment 144069 [details] Patch
Comment on attachment 144069 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=144069&action=review > Source/WebCore/inspector/front-end/HeapSnapshot.js:934 > + nodesToVisit[nodesToVisitLength++] = childNodeIndex; Please add an assert that nodesToVisitLength <= this.nodeCount
Committed r118529: <http://trac.webkit.org/changeset/118529>