Repository navigation
Conversation
13 of 55 tasks
ogrisel
reviewed
Nov 30, 2026
ogrisel
left a comment
Member
There was a problem hiding this comment.
Here is some feedback but overall LGTM.
Comment on lines
+37
to
+38
| later this will take into account nested thread pools, so available cores will | ||
| be smaller in worker pools. |
Member
There was a problem hiding this comment.
Let's assume that joblib 1.7.0 has been released when scikit-learn users read this.
Suggested change
| later this will take into account nested thread pools, so available cores will | |
| be smaller in worker pools. | |
| later this takes into account nested thread pools, so available cores will | |
| be smaller in worker pools. |
| the threading backend will be enabled in additional cases. | ||
|
|
||
| On free-threaded Python (sometimes identified by a "t" suffix on the version, | ||
| e.g. "3.15t"), the threaded backend will often be faster than ``loky``. |
Member
There was a problem hiding this comment.
Suggested change
| e.g. "3.15t"), the threaded backend will often be faster than ``loky``. | |
| e.g. "3.15t"), the threaded backend is often faster than ``loky``. |
Comment on lines
+84
to
+85
| processes. Subsequent calls will be faster as they reuse the existing pool | ||
| of workers. |
Member
There was a problem hiding this comment.
Suggested change
| processes. Subsequent calls will be faster as they reuse the existing pool | |
| of workers. | |
| processes and importing the necessary packages in the new processes. | |
| Subsequent calls will be faster as they reuse the existing pool of warm | |
| workers. |
|
|
||
| .. code-block:: console | ||
| Within a single Python thread, you can control the exact number of threads that | ||
| are used via `threadpoolctl` as explained by `this piece of documentation |
Member
There was a problem hiding this comment.
Suggested change
| are used via `threadpoolctl` as explained by `this piece of documentation | |
| are used via `threadpoolctl` as explained by the `threadpoolctl documentation |
Comment on lines
+108
to
+109
| 1.7 and later will manage OpenMP limits appropriately (earlier versions only | ||
| managed process pools). |
Member
There was a problem hiding this comment.
Suggested change
| 1.7 and later will manage OpenMP limits appropriately (earlier versions only | |
| managed process pools). | |
| 1.7 and later manage OpenMP limits appropriately (earlier versions only managed | |
| OpenMP limits when using process-based joblib backends). |
| Starting with ``joblib`` v1.7 both are much less of a concern, though some | ||
| configuration may be required. | ||
|
|
||
| For nested parallel algorithms, as long as you configure the inner algorithms |
Member
There was a problem hiding this comment.
Suggested change
| For nested parallel algorithms, as long as you configure the inner algorithms | |
| For nested joblib parallel calls, as long as you configure the inner algorithms |
Comment on lines
+185
to
+188
| in `this document from Thomas J. Fan | ||
| <https://thomasjpfan.github.io/parallelism-python-libraries-design/>`_; some of | ||
| the details may be out of date, given subsequent work on ``joblib`` and | ||
| ``threadpoolctl``. |
Member
There was a problem hiding this comment.
Suggested change
| in `this document from Thomas J. Fan | |
| <https://thomasjpfan.github.io/parallelism-python-libraries-design/>`_; some of | |
| the details may be out of date, given subsequent work on ``joblib`` and | |
| ``threadpoolctl``. | |
| in `this document from Thomas J. Fan | |
| <https://thomasjpfan.github.io/parallelism-python-libraries-design/>`_; some of | |
| the details may be out of date, as it was written before ``joblib`` 1.7 | |
| implemented more comprehensive oversubscription protection by default. |
Member
There was a problem hiding this comment.
Note that the following resources is expected to keep being updated (compared to @thomasjpfan's blog post:
However, I like the blog post narration better. Maybe we can keep it for now.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This should only be merged once joblib 1.7 is released.