-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BUGFIX beta] property_set should reuse reference to its meta #15210
Conversation
Good catch! No peeking :) |
for (let key in keys) { | ||
meta = meta || peakMeta(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a misspelling ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, should be peekMeta
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
although I do like that we've hit "peak meta"
for (let key in keys) { | ||
meta = meta || peakMeta(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above, peekMeta
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix da peak
@bmeurer this should eat into the 5%+ of time spent in weakmap lookup you guys have been seeing. |
@homu r+ |
📌 Commit a7ab514 has been approved by |
[BUGFIX beta] property_set should reuse reference to its meta
@homu retry |
[BUGFIX beta] property_set should reuse reference to its meta
@homu what's taking you so long :( |
I think homu is basically broken here :( |
I don't have the full context on this change. |
Sorry. This pull request removes repeated and unnecessary TL;DR this pr reduces the number of WeakMapGets's to at least 1/3 in some cases. |
Ah I see. That makes total sense, no matter what V8 (or any other engine) is doing. |
@bmeurer yup, should work in combination with any work engines do. |
No description provided.