-
Notifications
You must be signed in to change notification settings - Fork 674
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
Unified search layer #310
base: develop
Are you sure you want to change the base?
Unified search layer #310
Conversation
Signed-off-by: cmli <[email protected]>
Signed-off-by: cmli <[email protected]>
Signed-off-by: cmli <[email protected]>
@yurymalkov Can you help me with this pr? Error: "ImportError: cannot import name 'NoReturn'" occurs. |
Thanks for the PR! It seems like a python 3.6 error. I can look into it. From the point of the PR, I wonder if you've benchmarked the performance of the single-threaded version (e.g. check that performance is the same/better)? |
I did a simple benchmark on my machine with 32G memory.
Test with single thread:
Note that the unit of time is millisecond. |
Thank you for the test! I usually test it with low dim (say d=4), so to make evident the bottlenecks outside of the distance function computation. |
Hey @op-hunter , I think this can be solved by using templates. I wonder if there any way to make conditional lock creation? |
Maybe even pointers are fine. Not sure if there is a clean alternative. |
@yurymalkov How about use
|
Hm. I can check that. |
The function searchBaseLayer and searchBaseLayerST has almost the same code, this pull request unified the two functions.