Skip to content

Commit

Permalink
Use speedcopy module for faster copies across network boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
rxxg committed Jan 14, 2020
1 parent a09bfaf commit 0922344
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dvc/system.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import errno
import logging
import os
import shutil
import speedcopy

from dvc.compat import fspath
from dvc.exceptions import DvcException
Expand All @@ -18,7 +18,7 @@ def is_unix():
@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):
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def run(self):
"win-unicode-console>=0.5; sys_platform == 'win32'",
"pywin32>=225; sys_platform == 'win32'",
"networkx>=2.1,<2.4",
"speedcopy>=2",
]


Expand Down

0 comments on commit 0922344

Please sign in to comment.