-
Notifications
You must be signed in to change notification settings - Fork 74
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
add GIL release for statistics #3077
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3077 +/- ##
=======================================
Coverage 89.86% 89.86%
=======================================
Files 29 29
Lines 32155 32157 +2
Branches 5768 5768
=======================================
+ Hits 28895 28897 +2
Misses 1859 1859
Partials 1401 1401
Flags with carried forward coverage won't be shown. Click here to find out more.
|
LGTM! This should be thread-safe. Do we want this example in the docs (separate PR)? |
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.
Seems we're not touching Python objects in that section so should be good.
This pull request has been removed from the queue for the following reason: The pull request can't be updated You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. If you want to requeue this pull request, you need to post a comment with the text: |
@Mergifyio requeue |
✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically |
This pull request has been removed from the queue for the following reason: The pull request can't be updated You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. If you want to requeue this pull request, you need to post a comment with the text: |
d692645
to
98458ac
Compare
98458ac
to
a666b3a
Compare
I'd love to contribute. One question is why was the old threading article removed from the docs? My code was merely a lazy adaptation of the one from the old article. |
@hyanwong has been moving some things around to places like the tutorials, I assume that was why? |
Description
This is a simple addition that releases GIL for a number of statistics methods including
genetic_relatedness_vector
.Given this addition, one can use the
threading
module to enable multi-threading.