Bug 305297

Summary: Avoid calling collectMatchingRulesForList() when rules is null or empty
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: CSSAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Chris Dumez
Reported 2026-01-11 15:01:09 PST
Avoid calling collectMatchingRulesForList() when rules is null or empty. This is done by making collectMatchingRulesForList() inline and having to the checks before calling a non-inline collectMatchingRulesForListSlow() function. This allows us to avoid calling collectMatchingRulesForListSlow() over 60% of the time on Speedometer 3 and results in a 0.20-0.26% progression overall.
Attachments
Chris Dumez
Comment 1 2026-01-11 15:02:25 PST
EWS
Comment 2 2026-01-11 16:33:40 PST
Committed 305434@main (e1396917113b): <https://commits.webkit.org/305434@main> Reviewed commits have been landed. Closing PR #56426 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2026-01-11 16:34:13 PST
Note You need to log in before you can comment on or make changes to this bug.