Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very inefficient and slow if downloading "directly" to external volume #61

Open
danielpunkass opened this issue Nov 7, 2016 · 2 comments

Comments

@danielpunkass
Copy link
Contributor

First, thanks for the years of providing this tool. It's been very handy!

I commend you diving in to use Swift and Cocoa for this year's iteration. An unfortunate consuquence, I guess of the way that NSURLSession works, is when you run the tool on an external volume, the process is slowed down by the fact that NSURLSession downloads the file first to a temporary folder on the boot volume, and then the script copies the download to the destination folder. With each video comprising multiple GB of data, this causes a several minute delay on my Mac between the download of a video, and the beginning of downloading the next one.

It sure seems like an oversight that NSURLSession doesn't support specifying a volume on which the temporary download file should be saved.

I don't really expect a fix, just wanted to share my observation here in case somebody thinks of a clever/easy solution. I think that the "right" fix might unfortunately be moving away from NSURLSession's default downloader task

@danielpunkass
Copy link
Contributor Author

By the way, thanks for the link to the WWDC app. I had looked at it before but didn't think about how suitable it is for downloading an archive, the same way I had used your script for before.

@ohoachuck
Copy link
Owner

Hello Daniel,
thank you for this very interesting remark. I have never realised NSURLSession impact if we directly download on an external drive. I'm then curious to see what smart solution could easily fix this.

O.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants