Skip to content

Commit 37c8cce

Browse files
committed
change compress level to 6 from default 9 to accelerate
Signed-off-by: TaipingHu <[email protected]> [Jinzhe Zeng: cherry-pick from dpgen to dpdispatcher] Signed-off-by: Jinzhe Zeng <[email protected]>
1 parent ac5e8d6 commit 37c8cce

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
@@ -491,7 +491,7 @@ def _put_files(self,
491491
os.chdir(self.local_root)
492492
if os.path.isfile(of) :
493493
os.remove(of)
494-
with tarfile.open(of, "w:gz", dereference = dereference) as tar:
494+
with tarfile.open(of, "w:gz", dereference = dereference, compresslevel=6) as tar:
495495
for ii in files :
496496
tar.add(ii)
497497
if directories is not None:

0 commit comments

Comments
 (0)