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

Parallel export (use par comemo) #2989

Merged
merged 3 commits into from
Dec 18, 2023
Merged

Conversation

Dherse
Copy link
Sponsor Collaborator

@Dherse Dherse commented Dec 17, 2023

This PR does the following changes:

  • Using parallel comemo: we can now use rayon to get "free" parallel PNG and SVG export (brings a nice speedup)
  • Using Deferred: PDF page deflate is done in parallel
  • Small changes in some places to use parking_lot (which is already in our tree from comemo) which doesn't have poisoning and therefore doesn't require unwrapping
  • Moved to a Mutex in a place where a RwLock was used but never read meaning that we had a useless atomic counter

It brings a nice boost in cold and incremental performance basically for free :)

@laurmaedje laurmaedje merged commit 08225e4 into typst:main Dec 18, 2023
4 checks passed
@laurmaedje
Copy link
Member

Thank you!

@Dherse Dherse deleted the parallel-export branch December 30, 2023 13:07
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.

None yet

2 participants