Skip to content
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

We plan to set collect_metrics to false by default in C++ method searchKnn #495

Open
yurymalkov opened this issue Aug 13, 2023 · 0 comments

Comments

@yurymalkov
Copy link
Member

Right now it is true (https://github.com/nmslib/hnswlib/blob/master/hnswlib/hnswalg.h#L1220) and that is causing a measurable slowdown in multi-threaded search in some niche cases (e.g. dim=4).
collect_metrics increments some counters like number of distance computations or number of hops that can be used with C++ interface and is intended for debugging purposes. Not sure if anyone is actually using them.
We plan to change the default behavior to false in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant