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: [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]