Title: [111553] trunk/Source/WebCore
- Revision
- 111553
- Author
- [email protected]
- Date
- 2012-03-21 09:37:06 -0700 (Wed, 21 Mar 2012)
Log Message
Web Inspector: Speedup heap snapshot loading.
https://bugs.webkit.org/show_bug.cgi?id=81788
Patch by Alexei Filippov <[email protected]> on 2012-03-21
Reviewed by Yury Semikhatsky.
* inspector/front-end/HeapSnapshot.js:
(WebInspector.HeapSnapshotLoader.prototype._parseNodes):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (111552 => 111553)
--- trunk/Source/WebCore/ChangeLog 2012-03-21 16:36:34 UTC (rev 111552)
+++ trunk/Source/WebCore/ChangeLog 2012-03-21 16:37:06 UTC (rev 111553)
@@ -1,3 +1,13 @@
+2012-03-21 Alexei Filippov <[email protected]>
+
+ Web Inspector: Speedup heap snapshot loading.
+ https://bugs.webkit.org/show_bug.cgi?id=81788
+
+ Reviewed by Yury Semikhatsky.
+
+ * inspector/front-end/HeapSnapshot.js:
+ (WebInspector.HeapSnapshotLoader.prototype._parseNodes):
+
2012-03-21 Pavel Feldman <[email protected]>
Web Inspector: get rid of isInEditMode, use isBeingEdited on particular element.
Modified: trunk/Source/WebCore/inspector/front-end/HeapSnapshot.js (111552 => 111553)
--- trunk/Source/WebCore/inspector/front-end/HeapSnapshot.js 2012-03-21 16:36:34 UTC (rev 111552)
+++ trunk/Source/WebCore/inspector/front-end/HeapSnapshot.js 2012-03-21 16:37:06 UTC (rev 111553)
@@ -110,18 +110,21 @@
this._json = "";
return true;
}
+ var nextNumber = 0;
var startIndex = index;
while (index < length) {
var code = this._json.charCodeAt(index);
if (char0 > code || code > char9)
break;
+ nextNumber *= 10;
+ nextNumber += (code - char0);
++index;
}
if (index === length) {
this._json = this._json.slice(startIndex);
return true;
}
- this._nodes.push(parseInt(this._json.slice(startIndex, index)));
+ this._nodes.push(nextNumber);
}
},
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes