On Wed, May 13, 2015 at 10:17 PM, Alexander Korotkov <aekorotkov@gmail.com> wrote:
One quick comment:
It would be good to avoid the extra comparisons of the distances, when the index doesn't return any lossy items. As the patch stands, it adds one extra copyDistances() call and a cmp_distances() call for each tuple (in a knn-search), even if there are no lossy tuples.
I will fix it until Friday.
Attached patch is rebased against current master. Extra extra copyDistances() call and a cmp_distances() call for each tuple are avoided in the case of no lossy tuples.