From 9940fe60da33533b613244c011831b4172624fe4 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Fri, 15 Sep 2023 11:44:18 +0800 Subject: [PATCH] Gzip level 1 --- pmtiles/stats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmtiles/stats.go b/pmtiles/stats.go index a928e29..f55b0e9 100644 --- a/pmtiles/stats.go +++ b/pmtiles/stats.go @@ -201,7 +201,7 @@ func Stats(logger *log.Logger, file string) error { // once it has received all results, it terminates lastTask := int(header.TileContentsCount) - 1 go func() { - gzWriter := gzip.NewWriter(output) + gzWriter, _ := gzip.NewWriterLevel(output,gzip.BestSpeed) defer gzWriter.Close() csvWriter := csv.NewWriter(gzWriter)