Skip to content

fix #45, avoid inconsistent results for incorrectly serialized bitmaps#48

Merged
ChenHuajun merged 1 commit intomasterfrom
dev
Sep 7, 2025
Merged

fix #45, avoid inconsistent results for incorrectly serialized bitmaps#48
ChenHuajun merged 1 commit intomasterfrom
dev

Conversation

@ChenHuajun
Copy link
Owner

fix #45, avoid inconsistent results for incorrectly serialized bitmaps when using roaring_buffer_reader

@ChenHuajun
Copy link
Owner Author

Use the following SQL to compare performance and memory usage with and without this patch.

select rb_or_cardinality_agg('\x3a3000009900000000008e0201008e0202...'::roaringbitmap) from generate_series(1,1000000);

Cardinality of the roaringbitmap object is about 100,000

without this patch:
memory: 22680KB
time: 2m27s

with this patch:
memory: 21412KB
time: 2m26s

@ChenHuajun ChenHuajun merged commit 656da52 into master Sep 7, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rb_to_array and rb_min exhibits inconsistent results in a malformed serialize input

1 participant