File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ fn perf_comp_and_inplace_rust_roaring(b: &mut Bencher) {
209209 let bitmap2: RoaringBitmap = ( 100 ..200 ) . collect ( ) ;
210210
211211 b. iter ( || {
212- bitmap1. intersect_with ( black_box ( & bitmap2) ) ;
212+ bitmap1 &= black_box ( & bitmap2) ;
213213 } ) ;
214214}
215215
@@ -247,7 +247,7 @@ fn perf_comp_or_inplace_rust_roaring(b: &mut Bencher) {
247247 let bitmap2: RoaringBitmap = ( 100 ..200 ) . collect ( ) ;
248248
249249 b. iter ( || {
250- bitmap1. union_with ( black_box ( & bitmap2) ) ;
250+ bitmap1 |= & bitmap2;
251251 } ) ;
252252}
253253
@@ -285,7 +285,7 @@ fn perf_comp_xor_inplace_rust_roaring(b: &mut Bencher) {
285285 let bitmap2: RoaringBitmap = ( 100 ..200 ) . collect ( ) ;
286286
287287 b. iter ( || {
288- bitmap1. symmetric_difference_with ( black_box ( & bitmap2) ) ;
288+ bitmap1 ^= black_box ( & bitmap2) ;
289289 } ) ;
290290}
291291
You can’t perform that action at this time.
0 commit comments