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(ssr): speed up rendering stylesheets #4924

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

nolanlawson
Copy link
Collaborator

Details

Another small micro-optimization, this time in the 1-7% range:

Screenshot 2024-11-22 at 10 41 35 AM

The perf benefit here is basically just avoiding creating a lot of temporary arrays that get thrown away. I noticed we were spending a lot of time in GC.

Instead of creating arrays and filtering them, we can just traverse the stylesheet arrays as-is.

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 November 22, 2024 18:43
@nolanlawson nolanlawson merged commit baa911b into master Nov 25, 2024
11 checks passed
@nolanlawson nolanlawson deleted the nolan/speedup-stylesheets branch November 25, 2024 17:10
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