Changeset 143649 in webkit


Ignore:
Timestamp:
Feb 21, 2013 1:46:26 PM (11 years ago)
Author:
tonyg@chromium.org
Message:

Tune BackgroundHTMLParser's pendingTokenLimit based on a benchmark
https://bugs.webkit.org/show_bug.cgi?id=110408

Reviewed by Adam Barth.

This constant was tuned by running the top 25 sites in Telemetry on a Nexus 7 device.
The new value decreases the maximum time spent parsing by 40% without significantly impacting total parse time or DOMContentLoaded.

No new tests because no new functionality.

  • html/parser/BackgroundHTMLParser.cpp:

(WebCore):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r143646 r143649  
     12013-02-21  Tony Gentilcore  <tonyg@chromium.org>
     2
     3        Tune BackgroundHTMLParser's pendingTokenLimit based on a benchmark
     4        https://bugs.webkit.org/show_bug.cgi?id=110408
     5
     6        Reviewed by Adam Barth.
     7
     8        This constant was tuned by running the top 25 sites in Telemetry on a Nexus 7 device.
     9        The new value decreases the maximum time spent parsing by 40% without significantly impacting total parse time or DOMContentLoaded.
     10
     11        No new tests because no new functionality.
     12
     13        * html/parser/BackgroundHTMLParser.cpp:
     14        (WebCore):
     15
    1162013-02-21  Sheriff Bot  <webkit.review.bot@gmail.com>
    217
  • trunk/Source/WebCore/html/parser/BackgroundHTMLParser.cpp

    r143051 r143649  
    113113}
    114114
    115 // FIXME: Tune this constant based on a benchmark. The current value was chosen arbitrarily.
    116 static const size_t pendingTokenLimit = 4000;
     115static const size_t pendingTokenLimit = 1000;
    117116
    118117BackgroundHTMLParser::BackgroundHTMLParser(PassRefPtr<WeakReference<BackgroundHTMLParser> > reference, PassOwnPtr<Configuration> config)
Note: See TracChangeset for help on using the changeset viewer.