Enable parallel reading regardless of the number of documents (#12796)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
Matthias Geier 2024-09-18 03:57:40 +02:00 committed by GitHub
parent 3b9aa9cace
commit 78287616b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -96,6 +96,10 @@ Bugs fixed
file URL (user-defined base URL of an intersphinx project are left untouched
even if they end with double forward slashes).
Patch by Bénédikt Tran.
* #12796: Enable parallel reading if requested,
even if there are fewer than 6 documents.
Patch by Matthias Geier.
Testing
-------

View File

@ -428,7 +428,7 @@ class Builder:
self.events.emit('env-before-read-docs', self.env, docnames)
# check if we should do parallel or serial read
if parallel_available and len(docnames) > 5 and self.app.parallel > 1:
if parallel_available and self.app.parallel > 1:
par_ok = self.app.is_parallel_allowed('read')
else:
par_ok = False