ilia-permiashkin opened a new pull request, #15085: URL: https://github.com/apache/lucene/pull/15085
### Description This PR suggest some performance improvements. CPU profiling showed that some time is taken by `PriorityQueue`'s `poll` / `add` operations. Changes made: * Ensure current wosrt root `isWorseThan` candidate before adding it to the queue Before: <img width="982" height="353" alt="Screenshot 2025-08-18 at 7 15 35 PM" src="https://github.com/user-attachments/assets/f9410ae6-0003-428a-8867-2fd0d8dc955c" /> After: <img width="975" height="305" alt="Screenshot 2025-08-18 at 7 15 23 PM" src="https://github.com/user-attachments/assets/449eea18-27da-40a4-90ab-80becc75c899" /> -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org