Skip to content

Commit e05ca17

Browse files
committed
Change gzip compression level to 6
About 3 times faster and very similar compression rate for MVTs
1 parent d7660df commit e05ca17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/writer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub(crate) trait WriteTo {
3737
match compression {
3838
Compression::None => self.write_to(writer)?,
3939
Compression::Gzip => {
40-
let mut encoder = GzEncoder::new(writer, flate2::Compression::best());
40+
let mut encoder = GzEncoder::new(writer, flate2::Compression::default());
4141
self.write_to(&mut encoder)?;
4242
}
4343
v => Err(UnsupportedCompression(v))?,

0 commit comments

Comments
 (0)