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
Improved performance with large HTML files #11696
Conversation
Thanks for working on this.
👍 |
@fisker Is there anything I should do for the next step? |
I have changed the code to use for loop to recalculate
|
Co-authored-by: fisker Cheung <lionkay@gmail.com>
78ff75b
to
33334bb
Compare
I'm not sure about the performance impact, it seems we can use |
I'm not familiar with this part of code. Why are we using descriptors instead of class getters? |
I tried this now but there was no significant difference (using |
I'm not sure.
|
008975f
to
e214cd3
Compare
e214cd3
to
6d69d6b
Compare
1ff1de5
to
57f7360
Compare
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.
LGTM, thank you!
Description
I reduced copying AST like #11108.
On this case, the result of
yarn run perf:benchmark
became about 8.6x faster.before
after
refs #4776
Checklist
docs/
directory).changelog_unreleased/*/XXXX.md
file followingchangelog_unreleased/TEMPLATE.md
.✨Try the playground for this PR✨