[webkit-changes] [WebKit/WebKit] 6bf536: [MotionMark] `Style::Adjuster::adjust` spends 5% o...

Tim Nguyen noreply at github.com
Fri Oct 11 17:50:33 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6bf536e2dd61795b17f76ea7bf5eaf293eb6fc5e
      https://github.com/WebKit/WebKit/commit/6bf536e2dd61795b17f76ea7bf5eaf293eb6fc5e
  Author: Tim Nguyen <ntim at apple.com>
  Date:   2024-10-11 (Fri, 11 Oct 2024)

  Changed paths:
    M Source/WebCore/style/StyleAdjuster.cpp

  Log Message:
  -----------
  [MotionMark] `Style::Adjuster::adjust` spends 5% of its time in `WTF::linkedOnOrAfterSDKWithBehavior`
https://bugs.webkit.org/show_bug.cgi?id=281181
rdar://137640626

Reviewed by Simon Fraser.

Cache the result as a static boolean to avoid re-computing everytime we call `Style::Adjuster::adjust` (which is a hot codepath).

* Source/WebCore/style/StyleAdjuster.cpp:
(WebCore::Style::Adjuster::adjust const):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list