luyuncheng commented on PR #12723:
URL: https://github.com/apache/lucene/pull/12723#issuecomment-1783206971

   > this seems promising. I guess the only cost is the increased memory needed 
because we create the FixedBitSet? Can you say how large this might get in the 
worst case?
   
   @msokolov 
   In 
https://github.com/apache/lucene/blob/c701a5d9be4d8dc677ea994f8ef5fdd8945760d6/lucene/core/src/java/org/apache/lucene/util/bkd/DocIdsWriter.java#L66-L74
   
   AND 
   
https://github.com/apache/lucene/blob/c701a5d9be4d8dc677ea994f8ef5fdd8945760d6/lucene/core/src/java/org/apache/lucene/util/bkd/DocIdsWriter.java#L131-L140
   
   so, i think in `BITSET_IDS` type with `DocBaseBitSetIterator` in max range 
is about 8192 docids(16 * 512) which FixedBitSet 
    memory is 128 longs. and BKDReaderDocIDSetIterator contains 512 ints


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