Node-SMB / marsaud-smb2

SMB2 Client
53 stars 46 forks source link

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

Open duizhenpeng opened 5 years ago

duizhenpeng commented 5 years ago

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 commented 5 years ago

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 :slightly_smiling_face:

duizhenpeng commented 5 years ago

Thank you, I need to study it.

vdiez commented 3 years ago

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.