WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
305297
Avoid calling collectMatchingRulesForList() when rules is null or empty
https://bugs.webkit.org/show_bug.cgi?id=305297
Summary
Avoid calling collectMatchingRulesForList() when rules is null or empty
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
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2026-01-11 15:02:25 PST
Pull request:
https://github.com/WebKit/WebKit/pull/56426
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
<
rdar://problem/167954048
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug