Use speedcopy module for faster copies across network boundaries

This commit is contained in:
rxxg
2020-01-14 09:32:09 +01:00
parent a09bfaf9db
commit 09223442f5
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import errno
import logging
import os
import shutil
import speedcopy
from dvc.compat import fspath
from dvc.exceptions import DvcException
@@ -18,7 +18,7 @@ class System(object):
@staticmethod
def copy(src, dest):
src, dest = fspath(src), fspath(dest)
return shutil.copyfile(src, dest)
return speedcopy.copyfile(src, dest)
@staticmethod
def hardlink(source, link_name):
+1
View File
@@ -75,6 +75,7 @@ install_requires = [
"win-unicode-console>=0.5; sys_platform == 'win32'",
"pywin32>=225; sys_platform == 'win32'",
"networkx>=2.1,<2.4",
"speedcopy>=2",
]