[webkit-changes] [WebKit/WebKit] c62b38: Optimize layout of Font to reduce padding

Simon Fraser noreply at github.com
Mon Feb 6 09:17:45 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c62b38e4e53b4988a5165873279371c16d9b4e28
      https://github.com/WebKit/WebKit/commit/c62b38e4e53b4988a5165873279371c16d9b4e28
  Author: Simon Fraser <simon.fraser at apple.com>
  Date:   2023-02-06 (Mon, 06 Feb 2023)

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

  Log Message:
  -----------
  Optimize layout of Font to reduce padding
https://bugs.webkit.org/show_bug.cgi?id=251774
<rdar://problem/105068653>

Reviewed by Darin Adler.

Make SupportsFeature 8-bit. Reorder members to optimize padding. More could be achieved by avoiding std::optional<>.

Reduces size from 1272 to 1256 bytes.

* Source/WebCore/platform/graphics/Font.h:

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




More information about the webkit-changes mailing list