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

replace rehydration from CSSOM with progressive regex #2872

Merged
merged 2 commits into from
Nov 12, 2019

Conversation

quantizor
Copy link
Contributor

fixes #2812

@quantizor quantizor requested a review from kitten November 11, 2019 21:18
@quantizor
Copy link
Contributor Author

@kitten how can I benchmark this to compare against the existing v5 changes?

Copy link
Member

@kitten kitten left a comment

Choose a reason for hiding this comment

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

Not a big fan of the blanket eslint-disable and the content.split(‘“‘)[1] in there but logic looks fine and the code is clear 👍

You could just run a large production site (if you have one) and manually compare the loading stack trace. You should be able to observe the rehydration times. If this is as bad as it was before you’ll see a 5-10x regression

@quantizor
Copy link
Contributor Author

quantizor commented Nov 11, 2019 via email

@quantizor
Copy link
Contributor Author

quantizor commented Nov 11, 2019 via email

@quantizor
Copy link
Contributor Author

Available to test at styled-components@5.0.0-regexrehydrate

@quantizor quantizor added the 5.0 label Nov 12, 2019
@quantizor quantizor merged commit 270d464 into v5 Nov 12, 2019
@quantizor quantizor deleted the rehydrate-via-regex branch November 12, 2019 21:42
This was referenced Mar 4, 2020
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