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

fix(ssr): exponential perf slow down #6128

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

johnjenkins
Copy link
Contributor

@johnjenkins johnjenkins commented Jan 28, 2025

What is the current behavior?

A regression added in hydrate/proxy-host-element.ts < the more of the same component rendered on the page, the more times the prototype would be augmented - causing an ever deepening chain of getters.

GitHub Issue Number: #6127

What is the new behavior?

A simple property is added to the incoming prototype, making sure we only add augment it once.

Fixes #6127

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

  • A new wdio perf test has been added

Other information

image

@johnjenkins johnjenkins requested a review from a team as a code owner January 28, 2025 17:33
@johnjenkins
Copy link
Contributor Author

Gonna see if I can move this proto augment somewhere else so it’s less ugly

@johnjenkins johnjenkins marked this pull request as draft January 28, 2025 18:14
Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

One suggestion

@johnjenkins johnjenkins marked this pull request as ready for review January 28, 2025 21:51
Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@christian-bromann christian-bromann merged commit c1e6838 into ionic-team:main Jan 28, 2025
70 of 71 checks passed
@christian-bromann
Copy link
Member

This has been released in @stencil/[email protected]

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.

bug: rendering > 10 of the same component during SSR significantly affects page load time
2 participants