Closed
Description
While working on #20153 @mmastrac discovered that our implementation of Event
and related APIs is very slow:
We should do some benchmarks to see what is the cost of:
- creating an instance of
Event
class - adding event listener using
addEventListener
API - dispatching an event using
dispatchEvent
Once we have baseline measurements we should figure out where we are losing time and fix each case one-by-one.