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

Hello, how can I adjust the upload speed? #41

Open
duizhenpeng opened this issue Mar 27, 2019 · 3 comments
Open

Hello, how can I adjust the upload speed? #41

duizhenpeng opened this issue Mar 27, 2019 · 3 comments

Comments

@duizhenpeng
Copy link

Hello, how can I adjust the upload speed?
When using createWriteStream is very slow, writeFile is very fast. But I am a file upload larger than 2GB, which can use createWriteStream . Hope to help thank you.

@julien-f
Copy link
Member

It probably has to do with the parallel approach of writeFile.

I don't have much time to maintain this lib but PRs are very much welcome 🙂

@duizhenpeng
Copy link
Author

Thank you, I need to study it.

@vdiez
Copy link

vdiez commented Sep 9, 2020

Here is how aws-sdk handles concurrency from a single readStream:

https://github.com/aws/aws-sdk-js/blob/4d5e10ea8102b06756121e1a32d82e287d211e7e/lib/s3/managed_upload.js#L418

A PR would be very helpful indeed.

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

No branches or pull requests

3 participants