Changeset 184418 in webkit


Ignore:
Timestamp:
May 15, 2015, 2:36:02 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Joseph Pecoraro <Joseph Pecoraro> 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.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r184411 r184418  
     12015-05-15  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Reduce type annotation update frequency
     4        https://bugs.webkit.org/show_bug.cgi?id=145066
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * UserInterface/Controllers/TypeTokenAnnotator.js:
     9        Reduce the frequency which could commonly be 16-24ms
     10        to a minimum of 100ms and maximum of 2000ms.
     11
    1122015-05-15  Joseph Pecoraro  <pecoraro@apple.com>
    213
  • trunk/Source/WebInspectorUI/UserInterface/Controllers/TypeTokenAnnotator.js

    r181844 r184418  
    6969
    7070            var totalTime = Date.now() - startTime;
    71             var timeoutTime = Math.min(Math.max(7500, totalTime), 8 * totalTime);
     71            var timeoutTime = Math.max(100, Math.min(2000, 8 * totalTime));
    7272
    7373            this._timeoutIdentifier = setTimeout(function timeoutUpdate() {
Note: See TracChangeset for help on using the changeset viewer.