nmslib / hnswlib

Header-only C++/python library for fast approximate nearest neighbors
https://github.com/nmslib/hnswlib
Apache License 2.0
4.31k stars 633 forks source link

Parallelization #429

Closed lukeleeai closed 1 year ago

lukeleeai commented 1 year ago

OpenMP doesn't make the code any faster (there must be some bugs). Instead, I've used a faster inner loop suggested by ChatGPT, which accelerated the code by x3.