klsince commented on PR #10852:
URL: https://github.com/apache/pinot/pull/10852#issuecomment-1577722022

   Thanks @Jackie-Jiang for the tips on validating this. 
   ```
   public static void main(String[] args) {
       MutableRoaringBitmap bitmap = new MutableRoaringBitmap();
       for (int i = 0; i < 18000000; i++) {
         bitmap.add(i);
       }
       System.out.println(bitmap.serializedSizeInBytes());
       bitmap.runOptimize();
       System.out.println(bitmap.serializedSizeInBytes());
   
       RoaringBitmapWriter<RoaringBitmap> bitmapWriter = 
RoaringBitmapWriter.writer().get();
       for (int i = 0; i < 18000000; i++) {
         bitmapWriter.add(i);
       }
       System.out.println(bitmapWriter.get().serializedSizeInBytes());
     }
   
   2255008
   3889
   3889
   ```


-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to