Skip to content

Commit e3e4513

Browse files
authored
Merge pull request #154 from njzjz/cherrypick-dpgen-593
change compress level to 6 from default 9 to accelerate
2 parents c23c175 + 37c8cce commit e3e4513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpdispatcher/ssh_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def _put_files(self,
500500
os.chdir(self.local_root)
501501
if os.path.isfile(of) :
502502
os.remove(of)
503-
with tarfile.open(of, "w:gz", dereference = dereference) as tar:
503+
with tarfile.open(of, "w:gz", dereference = dereference, compresslevel=6) as tar:
504504
for ii in files :
505505
tar.add(ii)
506506
if directories is not None:

0 commit comments

Comments
 (0)