[webkit-changes] [WebKit/WebKit] 6ce95a: Tweak HTML parser yielding

Per Arne Vollan noreply at github.com
Wed Feb 8 08:50:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6ce95a8a6fc3a22908a89f8cc4763f9f5251e552
      https://github.com/WebKit/WebKit/commit/6ce95a8a6fc3a22908a89f8cc4763f9f5251e552
  Author: Per Arne Vollan <pvollan at apple.com>
  Date:   2023-02-08 (Wed, 08 Feb 2023)

  Changed paths:
    M Source/WebCore/html/parser/HTMLParserScheduler.cpp

  Log Message:
  -----------
  Tweak HTML parser yielding
https://bugs.webkit.org/show_bug.cgi?id=228780
rdar://81517847

Reviewed by Ryosuke Niwa.

Tweak html parser yielding to attempt to improve page load performance with respect to certain page load metrics.
This patch makes the parser yield if the page has not painted before and meaningful content has been loaded. So
far, this looks like a 1-2% improvement in page load times.

* Source/WebCore/html/parser/HTMLParserScheduler.cpp:
(WebCore::HTMLParserScheduler::shouldYieldBeforeExecutingScript):

Canonical link: https://commits.webkit.org/260011@main




More information about the webkit-changes mailing list