Vikasht34 commented on issue #15561:
URL: https://github.com/apache/lucene/issues/15561#issuecomment-3734084173

   @benwtrent ideally we want do something like this , never materializes the 
bitset in cost() - it just returns the iterator's cost estimate.
   
   ```
   public int cost() throws IOException {
         if (acceptBitSet != null) {
           return cardinality;
         }
         return Math.toIntExact(iteratorSupplier.get().cost());
       }
   ```
   
   @finnroblin this might be helpful. 


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