-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Don't doubly-parallelise sphinx-lint #110617
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
Don't doubly-parallelise sphinx-lint #110617
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! On my laptop this speeds things up from around 22 seconds to around 17 seconds. On @hugovk's, it went down from 5.5 seconds to around 3.4 seconds.
Thanks @AA-Turner for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
(cherry picked from commit e24f9ae) Co-authored-by: Adam Turner <[email protected]>
GH-110626 is a backport of this pull request to the 3.12 branch. |
GH-110627 is a backport of this pull request to the 3.11 branch. |
(cherry picked from commit e24f9ae) Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
Sphinx-Lint internally parallelises, and pre-commit also parallelises, leading to seeming resource contention. I observe a speed-up of ~5 seconds (from ~12 to ~7) when we let sphinx-lint control the parallelism.