iprithv opened a new pull request, #16154: URL: https://github.com/apache/lucene/pull/16154
NearestNeighbor was using java.util.PriorityQueue for collecting top-N hits. every time a better hit arrived, it did poll() + offer(), two heap rebuilds. switched to Lucene's PriorityQueue so we can mutate the top element in place and call updateTop(), one heap rebuild. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
