Skip to content

Commit

Permalink
save an allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
danking committed Oct 10, 2024
1 parent 240693b commit d325968
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vortex-sampling-compressor/src/compressors/chunked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ impl EncodingCompressor for ChunkedCompressor {
}

fn can_compress(&self, array: &Array) -> Option<&dyn EncodingCompressor> {
ChunkedArray::try_from(array)
.ok()
.map(|_| self as &dyn EncodingCompressor)
array.is_encoding(Chunked::ID).then_some(self)
}

fn compress<'a>(
Expand Down

0 comments on commit d325968

Please sign in to comment.