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

feat: Improve validation performance #13

Merged
merged 2 commits into from
Feb 7, 2024
Merged

feat: Improve validation performance #13

merged 2 commits into from
Feb 7, 2024

Conversation

matbme
Copy link
Member

@matbme matbme commented Feb 6, 2024

This PR improves validation performance by changing the parallelism model to a bag-of-tasks where the number of workers is equal to the number of system threads. This reduces the overhead of switching between potentially thousands of threads.

This commit improves validation performance by changing the parallelism
model to a bag-of-tasks where the number of workers is equal to the
number of system threads. This reduces the overhead of switching between
potentially thousands of threads.
@axtloss
Copy link
Member

axtloss commented Feb 6, 2024

Does this ensure that every thread gets a different file to check? And if a check fails, do all other checks also get cancelled (if the quit on fail option is enabled)

@matbme
Copy link
Member Author

matbme commented Feb 6, 2024

Does this ensure that every thread gets a different file to check?

Each line of the filelist gets passed to a shared channel, where only one thread can pick a line.

And if a check fails, do all other checks also get cancelled (if the quit on fail option is enabled)

I forgot to re-introduce this option. I'll work on a fix.

@matbme matbme merged commit f2673b6 into main Feb 7, 2024
1 check passed
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.

3 participants