Bug 252612

Summary: shrink CSSSelector
Product: WebKit Reporter: Cameron McCormack (:heycam) <heycam>
Component: CSSAssignee: Cameron McCormack (:heycam) <heycam>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Cameron McCormack (:heycam) 2023-02-20 14:24:21 PST
On 64 bit, CSSSelector is currently 16 bytes.  By moving some of its data to the rare data object, we can pack the remaining bits with the data union to shrink it to 8 bytes.  CSSSelector is a frequently allocated object, so this should have noticeable memory savings.
Comment 1 Radar WebKit Bug Importer 2023-02-20 14:24:38 PST
<rdar://problem/105696499>
Comment 2 Cameron McCormack (:heycam) 2023-02-20 14:26:47 PST
Pull request: https://github.com/WebKit/WebKit/pull/10397