Skip to content

Conversation

Kobzol
Copy link
Member

@Kobzol Kobzol commented Sep 6, 2025

I was writing a blog post and I couldn't understand why the build was so slow. I tracked it down to tera copying large amounts of JSON dictionaries, which I then tracked down to getzola/zola#2508. This flag reduces the build time of the blog locally from ~7-8s to ~1.2s.

I compared the outputs before/after and they seem to be the same.

RUN_SNAPSHOT_TESTS

@Kobzol Kobzol requested a review from senekor September 6, 2025 12:54
@Kobzol Kobzol mentioned this pull request Sep 6, 2025
Copy link
Contributor

@senekor senekor left a comment

Choose a reason for hiding this comment

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

Seems fine. You could snapshot-test the generated output by putting RUN_SNAPSHOT_TESTS in the PR description and pushing against. (maybe update committer timestamp or something and force-push)

@Kobzol
Copy link
Member Author

Kobzol commented Sep 6, 2025

Looks like the snapshot tests are green.

@Kobzol Kobzol merged commit 3469194 into rust-lang:master Sep 6, 2025
5 checks passed
@Kobzol Kobzol deleted the faster-build branch September 6, 2025 15:03
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