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(macros/CSSSyntax): cache parsed webref data #10225

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Dec 22, 2023

Summary

Problem

The CSSSyntax macro attributes for a significant amount of render time, and has caused our full builds to take 1.5 hours.

Solution

Cache parsed webref data to avoid duplicate work and improve performance.


Screenshots

Before

image

After

image

How did you test this change?

Kicked off a stage-build on this branch, see:

@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Dec 22, 2023
@caugner caugner force-pushed the optimize-css-syntax-macro branch from 07ba073 to 74dc950 Compare January 23, 2024 13:21
@caugner caugner marked this pull request as ready for review January 23, 2024 13:22
@caugner caugner requested a review from a team as a code owner January 23, 2024 13:22
Copy link
Contributor

@argl argl left a comment

Choose a reason for hiding this comment

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

Wow, impressive gains

@caugner caugner merged commit 078fa86 into main Jan 23, 2024
14 checks passed
@caugner caugner deleted the optimize-css-syntax-macro branch January 23, 2024 19:31
@caugner
Copy link
Contributor Author

caugner commented Jan 23, 2024

Wow, impressive gains

The truth is that this was a recently introduced performance regression. Until early December, the build time had been stable around 15min for some time. And we had noticed the regression only after the EOY production freeze had started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macros tracking issues related to kumascript macros
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants