Bug 304977

Summary: Optimize CSSSelectorList::operator==() now that we know the list size
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-06 00:01:48 PST
Optimize CSSSelectorList::operator==() now that we know the list size. Early return if the list sizes are different and avoid iterating over the list altogether.
Attachments
Chris Dumez
Comment 1 2026-01-06 00:03:36 PST
EWS
Comment 2 2026-01-06 17:00:27 PST
Committed 305189@main (5514298932d1): <https://commits.webkit.org/305189@main> Reviewed commits have been landed. Closing PR #56130 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2026-01-06 17:01:14 PST
Note You need to log in before you can comment on or make changes to this bug.