jpountz opened a new pull request, #12415:
URL: https://github.com/apache/lucene/pull/12415

   This introduces `LeafCollector#collect(DocIdStream)` to enable collectors to 
collect batches of doc IDs at once. `BooleanScorer` takes advantage of this by 
creating a `DocIdStream` whose `count()` method counts the number of bits that 
are set in the bit set of matches in the current window, instead of naively 
iterating over all matches.
   
   On wikimedium10m, this yields a ~20% speedup when counting hits for the 
`title OR 12` query (2.9M hits).
   
   Relates #12358


-- 
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

Reply via email to