Bug 267264
| Summary: | Make event handler house keeping in moveNodeToNewDocument more efficient | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
| Component: | DOM | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ryosuke Niwa
Pull request: https://github.com/WebKit/WebKit/pull/22540
EWS
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
<rdar://problem/120757979>