Closed wch closed 9 years ago
Sounds good ! Looks like changes in fff8dffbcc254d0b5d9598edf076072ab95108cd
I did it for downloads, but I think it'll be a little trickier for uploads because there's some logic for how to handle renaming and overwriting files and directories that I implemented in R for downloads, but would need to be implemented in the shell on the upload side.
Also, I have my RStudio configured to strip trailing whitespace so there were a lot of changes that were just whitespace. What do you think about enabling that option in the .Rproj file?
ah good point, strip added to .Rproj
file
Great, thanks!
@wch Do you think this is done? Or more to do?
I never implemented this for uploads, but I don't mind if you close the issue, since my use case was satisfied -- I just needed faster downloads.
Okay, close this for now, and we can revisit this for uploads if needed later on
On my slow cafe connection, downloading 130 files totaling 878KB via
scp
takes 69 seconds. Using and sending a .tgz file over a pipe takes 3.7 seconds.I believe
scp
is so slow because it transfers each file separately. Fordroplet_download
anddroplet_upload
, when doing multiple files, it will be much more efficient to use ssh and tar.