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(engine-dom): bring back BaseUpgradableConstructor #4116

Merged
merged 1 commit into from Apr 9, 2024

Conversation

nolanlawson
Copy link
Contributor

@nolanlawson nolanlawson commented Mar 29, 2024

Details

This brings back the perf optimization from #4092 which was removed in #4110. This does so safely in a way that doesn't break due to W-15361244 (which I verified manually).

Interestingly, the perf improvement is no longer quite as big – only in the 1-2% range:

Screenshot 2024-03-29 at 9 33 32 AM

It turns out the reason is that the bulk of the original improvement came not from the superclass, but instead from avoiding the for-loop to set all the props on the prototype (nolanlawson@58e45c3):

Screenshot 2024-03-29 at 9 51 25 AM

Either way, this PR is still a perf improvement, and we can do it safely now.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

@nolanlawson nolanlawson requested a review from a team as a code owner March 29, 2024 16:56
@nolanlawson nolanlawson merged commit 6c46adb into master Apr 9, 2024
9 checks passed
@nolanlawson nolanlawson deleted the nolan/upgr-const-optimization branch April 9, 2024 22:02
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.

None yet

2 participants