[webkit-changes] [WebKit/WebKit] 53b95e: Simplify SmallStringKey in the WidthCache

Chris Dumez noreply at github.com
Tue Oct 3 12:35:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 53b95eb35d950ea57cb4bdd1632042fe7260c026
      https://github.com/WebKit/WebKit/commit/53b95eb35d950ea57cb4bdd1632042fe7260c026
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-10-03 (Tue, 03 Oct 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/WidthCache.h

  Log Message:
  -----------
  Simplify SmallStringKey in the WidthCache
https://bugs.webkit.org/show_bug.cgi?id=262544

Reviewed by Darin Adler.

Simplify SmallStringKey in the WidthCache by relying on StringView::hash()
instead of duplicating the hashing logic there.

This tested as perf-neutral on Speedometer.

* Source/WebCore/platform/graphics/WidthCache.h:
(WebCore::WidthCache::SmallStringKey::SmallStringKey):
(WebCore::WidthCache::addSlowCase):

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




More information about the webkit-changes mailing list