Skip to content

Commit

Permalink
Avoid allocating too much containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Jun 6, 2024
1 parent 4466ae0 commit add2002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitmap/ops_with_serialized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl RoaringBitmap {
drop(offsets); // We could use these offsets but we are lazy
}

let mut containers = Vec::with_capacity(size);
let mut containers = Vec::new();

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

0 comments on commit add2002

Please sign in to comment.