-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Memory leak in quantile function #23
Comments
Some extra info: the graph was made using memory-profiler. |
Bumping this issue because I have run into the same problem. I suspect the issue coming from the C function that wraps the quantile call for ndarrays. I ended up rewriting the quantile function in python with a numba guvectorize decorator and got similar speed sans memory leak. I would like to move everything to numba eventually. Lines 519 to 589 in 8ec0b07
|
@djgagne did you also convert the rest of t-digest code to numba or just the quantile at the end? |
I have written numba versions of cdf and quantile so far but have not tackled the code for updating and merging the tdigest. I have the code in a PR for my bridgescaler package. |
Running:
Leads to this memory usage pattern:
![memoryleak-crick](https://user-images.githubusercontent.com/868434/100587332-b5e29f80-32f0-11eb-838e-d6ac684e1a5f.png)
The text was updated successfully, but these errors were encountered: