Skip to content

Commit f7f6dda

Browse files
taipinghuCloudac7
authored andcommitted
change compress level to 6 from default 9 to accelerate compress (deepmodeling#593)
1 parent c51040c commit f7f6dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpgen/dispatcher/SSHContext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def _put_files(self,
280280
os.chdir(self.local_root)
281281
if os.path.isfile(of) :
282282
os.remove(of)
283-
with tarfile.open(of, "w:gz", dereference = dereference) as tar:
283+
with tarfile.open(of, "w:gz", dereference = dereference, compresslevel=6) as tar:
284284
for ii in files :
285285
tar.add(ii)
286286
os.chdir(cwd)

0 commit comments

Comments
 (0)