-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[ENH] Distances: Offload work to a separate thread #4046
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4046 +/- ##
==========================================
+ Coverage 86.2% 86.22% +0.02%
==========================================
Files 396 396
Lines 70437 70609 +172
==========================================
+ Hits 60718 60885 +167
- Misses 9719 9724 +5 |
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.
This slows down the widget significantly. Iteration over rows must remain in Cython code, with callback every now and then.
Callbacks shouldn't happen in every row (because it involves calling Python code). Perhaps call it 100 times, that is, every n_rows / 100
rows.
6da8b7e
to
5fd4e26
Compare
160d5da
to
e7bd4cb
Compare
369fb40
to
702ada0
Compare
702ada0
to
cb0431a
Compare
Please rebase to current master, which fixes the failed tests caused by changes in sklearn 0.22. |
cb0431a
to
f2071ec
Compare
f2071ec
to
93e8266
Compare
c910e48
to
c10ce62
Compare
Issue
Partially fixes #3810.
Description of changes
Distance calculation now runs in a separate thread.
It is only possible to interrupt the Euclidean distance by now. Other distances will be adopted once the changes are approved.
Includes