Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Jul 24, 2024
1 parent cd2ca7a commit 9445254
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/polars-io/src/utils/other.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ pub unsafe fn maybe_decompress_bytes<'a>(
if is_compressed {
#[cfg(any(feature = "decompress", feature = "decompress-fast"))]
{
const GZIP: [u8; 2] = [31, 139];
const ZLIB0: [u8; 2] = [0x78, 0x01];
const ZLIB1: [u8; 2] = [0x78, 0x9C];
const ZLIB2: [u8; 2] = [0x78, 0xDA];
const ZSTD: [u8; 4] = [0x28, 0xB5, 0x2F, 0xFD];
use crate::utils::compression::magic::*;

if bytes.starts_with(&GZIP) {
flate2::read::MultiGzDecoder::new(bytes)
Expand Down

0 comments on commit 9445254

Please sign in to comment.