Skip to content

Commit

Permalink
Change gzip compression level to 6
Browse files Browse the repository at this point in the history
About 3 times faster and very similar compression rate for MVTs
  • Loading branch information
pka committed Oct 26, 2024
1 parent d7660df commit e05ca17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub(crate) trait WriteTo {
match compression {
Compression::None => self.write_to(writer)?,
Compression::Gzip => {
let mut encoder = GzEncoder::new(writer, flate2::Compression::best());
let mut encoder = GzEncoder::new(writer, flate2::Compression::default());
self.write_to(&mut encoder)?;
}
v => Err(UnsupportedCompression(v))?,
Expand Down

0 comments on commit e05ca17

Please sign in to comment.