Title: [184418] trunk/Source/WebInspectorUI
Revision
184418
Author
[email protected]
Date
2015-05-15 14:36:02 -0700 (Fri, 15 May 2015)

Log Message

Web Inspector: Reduce type annotation update frequency
https://bugs.webkit.org/show_bug.cgi?id=145066

Patch by Joseph Pecoraro <[email protected]> on 2015-05-15
Reviewed by Timothy Hatcher.

* UserInterface/Controllers/TypeTokenAnnotator.js:
Reduce the frequency which could commonly be 16-24ms
to a minimum of 100ms and maximum of 2000ms.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (184417 => 184418)


--- trunk/Source/WebInspectorUI/ChangeLog	2015-05-15 21:31:25 UTC (rev 184417)
+++ trunk/Source/WebInspectorUI/ChangeLog	2015-05-15 21:36:02 UTC (rev 184418)
@@ -1,5 +1,16 @@
 2015-05-15  Joseph Pecoraro  <[email protected]>
 
+        Web Inspector: Reduce type annotation update frequency
+        https://bugs.webkit.org/show_bug.cgi?id=145066
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Controllers/TypeTokenAnnotator.js:
+        Reduce the frequency which could commonly be 16-24ms
+        to a minimum of 100ms and maximum of 2000ms.
+
+2015-05-15  Joseph Pecoraro  <[email protected]>
+
         Web Inspector: Fix some possible event listener leakers in content views
         https://bugs.webkit.org/show_bug.cgi?id=145068
 

Modified: trunk/Source/WebInspectorUI/UserInterface/Controllers/TypeTokenAnnotator.js (184417 => 184418)


--- trunk/Source/WebInspectorUI/UserInterface/Controllers/TypeTokenAnnotator.js	2015-05-15 21:31:25 UTC (rev 184417)
+++ trunk/Source/WebInspectorUI/UserInterface/Controllers/TypeTokenAnnotator.js	2015-05-15 21:36:02 UTC (rev 184418)
@@ -68,7 +68,7 @@
             nodesWithUpdatedTypes.forEach(this._insertTypeToken, this);
 
             var totalTime = Date.now() - startTime;
-            var timeoutTime = Math.min(Math.max(7500, totalTime), 8 * totalTime);
+            var timeoutTime = Math.max(100, Math.min(2000, 8 * totalTime));
 
             this._timeoutIdentifier = setTimeout(function timeoutUpdate() {
                 this._timeoutIdentifier = null;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to