Skip to content

Document using limiting APIs for Python thread pools - #234

Merged
ogrisel merged 22 commits into
joblib:masterfrom
itamarst:215-limits-for-thread-pools
Sep 8, 2026
Merged

Document using limiting APIs for Python thread pools#234
ogrisel merged 22 commits into
joblib:masterfrom
itamarst:215-limits-for-thread-pools

Conversation

@itamarst

@itamarst itamarst commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #215

@itamarst
itamarst marked this pull request as ready for review September 3, 2026 17:39
@itamarst

itamarst commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

I think once this merged maybe this could be released?

@ogrisel ogrisel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A first pass of feedback. I think it would be helpful if someone else who did not review all your past PRs could have a fresh look at this. Maybe @cakedev0, @lesteve and/or @jeremiedbb?

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated

@ogrisel ogrisel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. LGTM.

Comment thread README.md
@ogrisel

ogrisel commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

BTW, the CI should now be green if you sync this PR's branch with the master branch.

@cakedev0 cakedev0 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small findings here and there. Plus two genuine, possibly naive, questions. Otherwise, I found it relatively clear and easy to understand.

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread conftest.py Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
@itamarst
itamarst requested a review from cakedev0 September 7, 2026 17:08
@itamarst

itamarst commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

I believe I've addressed all the review comments, thanks for the detailed feedback.

@cakedev0 cakedev0 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, based on the diff since my last review.

Thank you for the nice documentation effort! 😄

Comment thread README.md Outdated
Comment on lines +244 to +245
To prevent loading shared libraries repeatedly, you can reuse a
Whenever `threadpool_limits` is called, it needs to do some work (inspecting and getting access to third-party shared libraries) that can take some time.
To prevent the performance cost of doing this work every time, you can reuse a

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ogrisel
ogrisel merged commit 1ac9590 into joblib:master Sep 8, 2026
22 checks passed
@ogrisel

ogrisel commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Thanks again! I will follow-up with a release soon.

@cakedev0

cakedev0 commented Sep 8, 2026

Copy link
Copy Markdown

If you also plan a release of loky, can we please merge joblib/loky#651 before? 🙏

@lesteve

lesteve commented Sep 8, 2026

Copy link
Copy Markdown
Member

I think it's only a release for threadpoolctl for now, but I haven't forgotten your loky PR 😉.

@itamarst

itamarst commented Sep 8, 2026 via email

Copy link
Copy Markdown
Contributor Author

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.

API for setting limits for use by Python thread pools

4 participants