Skip to content

Commit

Permalink
fine tune fast path threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
gstvg committed Aug 30, 2024
1 parent 251ef82 commit e35aaa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arrow-array/src/array/union_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,9 @@ impl Array for UnionArray {
// masking is only efficient up to a certain point
// when all fields contains nulls, one field mask can be cheaply calculated
// by negating the others, so it's threshold is higher
if with_nulls.len() <= 12 && with_nulls.len() == fields.len() {
if with_nulls.len() <= 10 && with_nulls.len() == fields.len() {
self.mask_sparse_all_nulls(&with_nulls)
} else if with_nulls.len() <= 11 {
} else if with_nulls.len() <= 9 {
self.mask_sparse_mixed_nulls(&with_nulls)
} else {
self.gather_nulls(&with_nulls)
Expand Down

0 comments on commit e35aaa0

Please sign in to comment.