Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
remove accidental quadratic null_count
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed May 17, 2022
1 parent 826a2b8 commit b0006f8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/array/primitive/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,6 @@ impl<T: NativeType> MutablePrimitiveArray<T> {
let len = self.len();
if let Some(validity) = self.validity.as_mut() {
validity.extend_constant(len - validity.len(), true);
} else {
let mut validity = MutableBitmap::new();
validity.extend_constant(len, true);
if validity.null_count() > 0 {
self.validity = Some(validity);
}
}
}

Expand Down

0 comments on commit b0006f8

Please sign in to comment.