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

Improve sync times #185

Merged
merged 6 commits into from
Aug 16, 2023
Merged

Improve sync times #185

merged 6 commits into from
Aug 16, 2023

Conversation

Jake-Shadle
Copy link
Member

This adds a sanity check test to ensure cargo doesn't need to do work after we use cargo-fetcher, and while doing this noticed the error that I introduced in #181 that caused sync times to be slower than the non-async version.

This is a bit uglier than I would like, but unfortunately we can't ship
off the async task join to a tokio task as
we spawn so many tasks that tokio won't schedule it. So instead we spawn
the rayon scope on a separate thread first. This cuts sync times by
~25+%
This test is kind of redundant to diff_cargo, but I was using it to
sanity check that we are 100% not giving cargo any work to do.
@Jake-Shadle Jake-Shadle merged commit e92fabe into main Aug 16, 2023
9 checks passed
@Jake-Shadle Jake-Shadle deleted the more-speed branch August 16, 2023 12:44
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.

1 participant