shubhamvishu commented on issue #15561: URL: https://github.com/apache/lucene/issues/15561#issuecomment-3731004510
Hi @benwtrent, In [DocIdSetIteratorAcceptDocs#cost](https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/search/AcceptDocs.java#L191-L193) aren't we using the cached version and not calling `#cardinality` again?. I see you already fixed it in your PR https://github.com/apache/lucene/pull/15343. Maybe I misunderstood something here since I don't see the exact version of `#cost ` function that you have pointed above. ``` @Override public int cost() throws IOException { createBitSetAcceptDocsIfNecessary(); return 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]
