jpountz commented on PR #15123:
URL: https://github.com/apache/lucene/pull/15123#issuecomment-3221874432

   Javadocs of `LeafReader#numDocs` warn that it may run in O(maxDoc) time. I 
wonder if we should instead extract a method that tells whether it matches all 
or nothing (without calling numDocs()) and then use it from count() (plus 
calling numDocs()) and scorerSupplier()?


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

Reply via email to