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

Use rayon to parallelize the blog post rendering #1159

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Oct 24, 2023

This PR builds on top of #1157 and uses rayon to render the blog posts in parallel. This reduces the rendering time on my machine from about 4 seconds to 1.6 seconds 🎉

/cc @rust-lang/website

`Box<dyn Error>` is not `Send`, which makes it harder to parallelize the rendering of the blog posts. `eyre::Report` fortunately does not have this problem.
@Manishearth Manishearth merged commit c3b1d99 into rust-lang:master Oct 24, 2023
2 checks passed
@Turbo87 Turbo87 deleted the rayon branch October 26, 2023 12:19
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