Skip to content

Optimize events implementation #20167

Closed
Closed
@bartlomieju

Description

@bartlomieju

While working on #20153 @mmastrac discovered that our implementation of Event and related APIs is very slow:
image (4)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    perfperformance relatedwebrelated to Web APIs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions