Closed junqiu-lei closed 2 hours ago
What is the enhancement? We can optimize the reduceToTopK method by removing unnecessary pre-filling, reducing redundant peek() calls for better performance.
Code ref: https://github.com/opensearch-project/k-NN/blob/main/src/main/java/org/opensearch/knn/index/query/ResultUtil.java#L33-L59
What is the enhancement? We can optimize the reduceToTopK method by removing unnecessary pre-filling, reducing redundant peek() calls for better performance.
Code ref: https://github.com/opensearch-project/k-NN/blob/main/src/main/java/org/opensearch/knn/index/query/ResultUtil.java#L33-L59