Increase default chunk size for async request #6542
+7
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
According to public S3 documentation, https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html , the chunk size is recomended to be at least 64 Kb to achieve better performance. The current default chunk size for sync is 128 KB and default chunk size for async is 16 Kb.
Modifications
Increase the DEFAULT_ASYNC_CHUNK_SIZE from 16Kb to 64Kb
Testing
Screenshots (if appropriate)
Types of changes
Checklist
mvn installsucceedsscripts/new-changescript and following the instructions. Commit the new file created by the script in.changes/next-releasewith your changes.License