mirror of
https://github.com/ducaale/xh.git
synced 2025-05-05 15:32:50 +00:00
Increase Brotli decoder buffer size
This commit is contained in:
parent
b4e3fb2012
commit
674be17a36
@ -191,7 +191,8 @@ pub fn decompress(
|
||||
decoder: match compression_type {
|
||||
CompressionType::Gzip => Box::new(GzDecoder::new(reader)),
|
||||
CompressionType::Deflate => Box::new(ZlibDecoder::new(reader)),
|
||||
CompressionType::Brotli => Box::new(BrotliDecoder::new(reader, 4096)),
|
||||
// 32K is the default buffer size for gzip and deflate
|
||||
CompressionType::Brotli => Box::new(BrotliDecoder::new(reader, 32 * 1024)),
|
||||
CompressionType::Zstd => Box::new(LazyZstdDecoder::Uninit(Some(reader))),
|
||||
},
|
||||
status: Some(status),
|
||||
|
Loading…
x
Reference in New Issue
Block a user