The idea is to switch from nodeIndex2distance array to nodeOrdinal2distance external array. Due to nature of nodeIndex values the original array was sparsed. RESULT heap-snapshot: _calculateObjectToWindowDistance= 768 ms vs RESULT heap-snapshot: _calculateObjectToWindowDistance= 110 ms
Created attachment 142451 [details] Patch
Comment on attachment 142451 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=142451&action=review > Source/WebCore/inspector/front-end/HeapSnapshot.js:942 > + ? nodes[nodeIndex + firstEdgeIndexOffset + nodeFieldCount] Please revert change in this line.
Committed r117437: <http://trac.webkit.org/changeset/117437>