Bug 267264

Summary: Make event handler house keeping in moveNodeToNewDocument more efficient
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Ryosuke Niwa
Reported 2024-01-09 02:39:39 PST
The code to update the number of wheel, touch, and gesture events are currently inefficient because they invoke an linear search for the total number of distinct event types. This results in O(kn) behavior where k is the number of wheel, touch, and gesture event types, and n is the total number of event listeners on a given Node.
Attachments
Ryosuke Niwa
Comment 1 2024-01-09 02:54:29 PST
EWS
Comment 2 2024-01-09 18:26:41 PST
Committed 272834@main (d2548129f178): <https://commits.webkit.org/272834@main> Reviewed commits have been landed. Closing PR #22540 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2024-01-09 18:27:31 PST
Note You need to log in before you can comment on or make changes to this bug.