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

Increase default chunkSize to 30 MB #74

Merged
merged 1 commit into from
Mar 3, 2022

Conversation

bgentry
Copy link
Contributor

@bgentry bgentry commented Feb 23, 2022

This drastically improves performance on faster connections, at the cost of potentially needing to retry a larger chunk of data when a connection is interrupted.

It's impossible to serve both fast and slow/unreliable internet connections well with a single fixed setting here, so in the future this should be made to scale dynamically to 1) maximize upload speed on fast connections, and 2) constrain the amount of time that will be wasted re-uploading a partial segment if it is interrupted.

I did not touch the version here, up to you how to deal with communicating this changed default.

This drastically improves performance on faster connections, at the cost
of potentially needing to retry a larger chunk of data when a connection
is interrupted.

It's impossible to serve both fast and slow/unreliable internet
connections well with a single fixed setting here, so in the future this
should be made to scale dynamically to 1) maximize upload speed on fast
connections, and 2) constrain the amount of time that will be wasted
re-uploading a partial segment if it is interrupted.
@bgentry bgentry requested review from dylanjha and a team February 23, 2022 21:22
Copy link
Contributor

@jsanford8 jsanford8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable to me as a start

@bgentry
Copy link
Contributor Author

bgentry commented Feb 24, 2022

I'll let you all decide if/when/how to merge and release this since it involves versioning and new npm releases.

@jsanford8 jsanford8 merged commit 7f2658e into master Mar 3, 2022
@jsanford8 jsanford8 deleted the bg-increase-default-chunk-size branch March 3, 2022 22:38
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

Successfully merging this pull request may close these issues.

None yet

2 participants