salvatorecampagna commented on PR #15413: URL: https://github.com/apache/lucene/pull/15413#issuecomment-3554968240
I think now I am satisfied. I added a commit to avoid calling `cardinality()` twice. That was happening both in `Lucene90LiveDocsFormat` and later on in the iterator constructor. It is far more efficient to just provide `maxDoc` and the number of deleted document (if available) at construction time to avoid an unnecessary call to `cardinality()`. -- 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]
