Skip to content

Commit

Permalink
Use Gzip compress level 6 (#720)
Browse files Browse the repository at this point in the history
Much faster and comparable quality to level 9
  • Loading branch information
pauldraper authored Aug 9, 2023
1 parent 3aadc77 commit 3ebf3b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/private/tar/tar_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self,
# The Tarfile class doesn't allow us to specify gzip's mtime attribute.
# Instead, we manually reimplement gzopen from tarfile.py and set mtime.
self.fileobj = gzip.GzipFile(
filename=name, mode='w', compresslevel=9, mtime=self.default_mtime)
filename=name, mode='w', compresslevel=6, mtime=self.default_mtime)
self.compressor_proc = None
if self.compressor_cmd:
mode = 'w|'
Expand Down

0 comments on commit 3ebf3b2

Please sign in to comment.