Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(ext/web): optimize EventTarget #12166

Merged
merged 1 commit into from
Sep 21, 2021
Merged

Conversation

AaronO
Copy link
Contributor

@AaronO AaronO commented Sep 21, 2021

and all its subclasses including AbortSignal ...

Instead of storing associated data in a global WeakMap we store them as private attributes (via a Symbol) on the object instances

and all it's subclasses including AbortSignal ...

Instead of storing associated data in a global WeakMap we store them as private attributes (via a symbol) on the object instances
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AaronO AaronO merged commit 0aa6fef into denoland:main Sep 21, 2021
@AaronO AaronO deleted the perf/event-target branch September 21, 2021 15:51
caspervonb pushed a commit to caspervonb/deno that referenced this pull request Sep 26, 2021
and all its subclasses including `AbortSignal` ...

Instead of storing associated data in a global `WeakMap` we store them as private attributes (via a Symbol) on the object instances
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants