Bug 251744 - shrink StyleRule
Summary: shrink StyleRule
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Cameron McCormack (:heycam)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-04 16:02 PST by Cameron McCormack (:heycam)
Modified: 2023-02-05 17:45 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron McCormack (:heycam) 2023-02-04 16:02:39 PST
StyleRules are currently 64 bytes.  We can gain 8 bytes by moving its bool fields to pack with the base class, and another 16 bytes by moving the CSS Nesting related fields off to a rare data object.
Comment 1 Radar WebKit Bug Importer 2023-02-04 16:02:59 PST
<rdar://problem/105046580>
Comment 2 Cameron McCormack (:heycam) 2023-02-04 16:27:23 PST
Pull request: https://github.com/WebKit/WebKit/pull/9580
Comment 3 Cameron McCormack (:heycam) 2023-02-04 16:32:17 PST
Pull request: https://github.com/WebKit/WebKit/pull/9650
Comment 4 EWS 2023-02-05 17:45:29 PST
Committed 259875@main (aea4f3f29a7c): <https://commits.webkit.org/259875@main>

Reviewed commits have been landed. Closing PR #9650 and removing active labels.