From a77f781a0f3867e14633b4de38b7ee43e83e49a0 Mon Sep 17 00:00:00 2001 From: TaipingHu Date: Sat, 20 Nov 2021 17:25:32 +0800 Subject: [PATCH] change compress level to 6 from default 9 to accelerate compress --- dpgen/dispatcher/SSHContext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpgen/dispatcher/SSHContext.py b/dpgen/dispatcher/SSHContext.py index 9e355b5ed..35a7e5997 100644 --- a/dpgen/dispatcher/SSHContext.py +++ b/dpgen/dispatcher/SSHContext.py @@ -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)