stefanvodita opened a new issue, #13175: URL: https://github.com/apache/lucene/issues/13175
### Description There are several occurrences in our code where we check that an incoming value can be inserted in a priority queue and then call `insertWithOverflow`, which re-does the check. Let's stop checking before calling `insertWithOverflow`. Credit to @epotyom for [noticing this in `AbstractSortedSetDocValueFacetCounts`](https://github.com/apache/lucene/pull/12966#discussion_r1457584536). -- 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.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