Commit 18a219c
authored
perf: reuse mask in
## Which issue does this PR close?
N/A
## Rationale for this change
1. instead of counting set bits to check if there is at least 1 set
bits, we can use the existing helpers on `BooleanArray` that check if
there is at least 1 set bit
2. Avoid unnecessary `BooleanBuffer` bitwise operations and reuse mask
## What changes are included in this PR?
reused mask, and use helper to check if at least one false
## Are these changes tested?
Existing tests
## Are there any user-facing changes?
No
------
Cc @gstvg, @compheadtruncate_list_nulls and avoid counting all true bits (#22158)1 parent 63ef9c3 commit 18a219c
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
1129 | 1129 | | |
1130 | 1130 | | |
1131 | 1131 | | |
| 1132 | + | |
1132 | 1133 | | |
1133 | 1134 | | |
1134 | 1135 | | |
| |||
1142 | 1143 | | |
1143 | 1144 | | |
1144 | 1145 | | |
1145 | | - | |
1146 | | - | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
1147 | 1149 | | |
1148 | | - | |
| 1150 | + | |
1149 | 1151 | | |
1150 | 1152 | | |
1151 | 1153 | | |
1152 | 1154 | | |
1153 | 1155 | | |
1154 | 1156 | | |
1155 | | - | |
| 1157 | + | |
1156 | 1158 | | |
1157 | 1159 | | |
1158 | 1160 | | |
| |||
0 commit comments