Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8a023d3464fa200520aaf8d97eb5ffc0476ae7c9
      
https://github.com/WebKit/WebKit/commit/8a023d3464fa200520aaf8d97eb5ffc0476ae7c9
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-06-30 (Tue, 30 Jun 2026)

  Changed paths:
    M Source/WebCore/html/parser/HTMLResourcePreloader.h

  Log Message:
  -----------
  Reduce PreloadRequest size by 8 bytes via field reordering
https://bugs.webkit.org/show_bug.cgi?id=318207
rdar://181008611

Reviewed by Chris Dumez.

m_resourceType (CachedResource::Type, a uint8_t enum) sat between
m_charset and m_mediaAttribute, both pointer-sized String members,
forcing 7 bytes of padding into its own 8-byte slot. The class already
has a cluster of sub-word members at the tail (m_scriptIsAsync,
m_scriptType, m_referrerPolicy, m_fetchPriority) sharing a single
8-byte slot with room to spare.

Move m_resourceType down into that cluster so all five small members
pack into one slot, shrinking PreloadRequest by 8 bytes. The
constructor initializer list is reordered to match the new member
declaration order. No behavior change.

* Source/WebCore/html/parser/HTMLResourcePreloader.h:
(WebCore::PreloadRequest::PreloadRequest):

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



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

Reply via email to