Closed juldaani closed 3 years ago
Hello Juho,
Sorry for the caused problems. I've reproduced your example and made a fix. Outputs of /usr/bin/time: For 5 iterations:
User time (seconds): 36.14
Maximum resident set size (kbytes): 458040
For 100 iterations:
User time (seconds): 726.69
Maximum resident set size (kbytes): 458308
So I guess the problem should go away now. Could you please try the new version:
pip install git+https://github.com/u1234x1234/pynanoflann.git@0.0.3
Best, Dmitrii
Hey Dmitrii,
Now it works like a charm. Lot of thanks for the fast response. I really appreciate that people are creating and maintaining this kind of fast and computationally efficient libraries for python.
Best regards Juho
Glad it helped you. I'm closing the issue.
Hey,
Thanks for the very good library, it is quite fast (fastest python implementation I've found so far). Unfortunately it seems that there is a memory leak somewhere.
If I run the following code memory usage keeps slowly increasing:
I'm using version 0.0.1 of pynanoflann. The problem limits the usability of the library since I've to create new kdtree in each loop iteration and in the end I'll run out of memory.
Best regards Juho