Skip to content

Commit 02c695f

Browse files
authored
Remove BitSliceIterator specialization from try_for_each_valid_idx (#3621)
1 parent e6418cb commit 02c695f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

arrow-data/src/bit_iterator.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,7 @@ pub fn try_for_each_valid_idx<E, F: FnMut(usize) -> Result<(), E>>(
186186
if valid_count == len {
187187
(0..len).try_for_each(f)
188188
} else if null_count != len {
189-
let selectivity = valid_count as f64 / len as f64;
190-
if selectivity > 0.8 {
191-
BitSliceIterator::new(nulls.unwrap(), offset, len)
192-
.flat_map(|(start, end)| start..end)
193-
.try_for_each(f)
194-
} else {
195-
BitIndexIterator::new(nulls.unwrap(), offset, len).try_for_each(f)
196-
}
189+
BitIndexIterator::new(nulls.unwrap(), offset, len).try_for_each(f)
197190
} else {
198191
Ok(())
199192
}

0 commit comments

Comments
 (0)