Skip to content

Commit

Permalink
change compress level to 6 from default 9 to accelerate compress (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
taipinghu committed Nov 30, 2021
1 parent 58c7674 commit df9095d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpgen/dispatcher/SSHContext.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def _put_files(self,
os.chdir(self.local_root)
if os.path.isfile(of) :
os.remove(of)
with tarfile.open(of, "w:gz", dereference = dereference) as tar:
with tarfile.open(of, "w:gz", dereference = dereference, compresslevel=6) as tar:
for ii in files :
tar.add(ii)
os.chdir(cwd)
Expand Down

0 comments on commit df9095d

Please sign in to comment.