jelmerk / hnswlib

Java library for approximate nearest neighbors search using Hierarchical Navigable Small World graphs
Apache License 2.0
255 stars 55 forks source link

Can i remove the "synchronized" when using findNearest? #26

Closed hajayxie closed 3 years ago

hajayxie commented 3 years ago

HI, The server will load all data to the index at the begining, and after that the index is not changing.Can i remove the "synchronized" when using findNearest?

jelmerk commented 3 years ago

probably yes it only updates the graph on modifications. Does it make a big difference ?