Skip to content

Commit add2002

Browse files
committed
Avoid allocating too much containers
1 parent 4466ae0 commit add2002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bitmap/ops_with_serialized.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl RoaringBitmap {
9797
drop(offsets); // We could use these offsets but we are lazy
9898
}
9999

100-
let mut containers = Vec::with_capacity(size);
100+
let mut containers = Vec::new();
101101

102102
// Read each container and skip the useless ones
103103
for i in 0..size {

0 commit comments

Comments
 (0)