Skip to content

Commit

Permalink
[Enhancement] Optimize the performance of bitmap_xor using native roa…
Browse files Browse the repository at this point in the history
…ring_bitmap function (#34069)

Signed-off-by: trueeyu <[email protected]>
(cherry picked from commit a57f31c)
  • Loading branch information
trueeyu authored and mergify[bot] committed Nov 14, 2023
1 parent b2703c7 commit 3505938
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions be/src/types/bitmap_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,10 +464,7 @@ BitmapValue& BitmapValue::operator^=(const BitmapValue& rhs) {
_type = BITMAP;
break;
case BITMAP: {
BitmapValue rhs_bitmap(rhs);
*rhs_bitmap._bitmap -= *_bitmap;
*_bitmap -= *rhs._bitmap;
*_bitmap |= *rhs_bitmap._bitmap;
*_bitmap ^= *rhs._bitmap;
break;
}
case SET: {
Expand Down

0 comments on commit 3505938

Please sign in to comment.