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

service/s3/s3manager: Prefer using allocated slices from pool over allocating new ones. #3534

Conversation

mikhail-chebakov
Copy link
Contributor

Problem:
S3 uploader could allocate more memory than it is actually needed.
Added unit test should showcase the problem

For changes to files under the /model/ folder, and manual edits to autogenerated code (e.g. /service/s3/api.go) please create an Issue instead of a PR for those type of changes.

If there is an existing bug or feature this PR is answers please reference it here.

@skmcgrail
Copy link
Member

Thanks you for this contribution @mikhail-chebakov this is a nice optimization corner case you've found. I'll give this a look over and work on getting it merged in.

@skmcgrail skmcgrail self-requested a review September 16, 2020 23:03
@jasdel jasdel added the needs-review This issue or pull request needs review from a core team member. label Sep 21, 2020
mikhail and others added 2 commits September 22, 2020 11:45
…ing new ones if possible

Problem:
S3 uploader could allocate more memory than it is actually needed.
Added unit test should showcase the problem
@skmcgrail skmcgrail force-pushed the prefer-using-allocated-slices-over-allocating-new-ones branch from 215d3c7 to 0a015e6 Compare September 22, 2020 18:56
@skmcgrail skmcgrail removed the needs-review This issue or pull request needs review from a core team member. label Sep 22, 2020
@skmcgrail skmcgrail changed the title service/s3/s3manager/pool: prefer using allocated slices over allocating new ones service/s3/s3manager: Prefer using allocated slices from pool over allocating new ones. Sep 22, 2020
@skmcgrail skmcgrail merged commit 3e8ec88 into aws:master Sep 22, 2020
aws-sdk-go-automation pushed a commit that referenced this pull request Sep 23, 2020
===

### Service Client Updates
* `service/backup`: Updates service API and documentation
* `service/ce`: Updates service API and documentation
* `service/quicksight`: Updates service API and documentation
  * Added Sheet information to DescribeDashboard, DescribeTemplate and DescribeAnalysis API response.
* `service/translate`: Updates service API and documentation

### SDK Enhancements
* `service/s3/s3manager`:  Prefer using allocated slices from pool over allocating new ones. ([#3534](#3534))
aws-sdk-go-automation added a commit that referenced this pull request Sep 23, 2020
Release v1.34.30 (2020-09-23)
===

### Service Client Updates
* `service/backup`: Updates service API and documentation
* `service/ce`: Updates service API and documentation
* `service/quicksight`: Updates service API and documentation
  * Added Sheet information to DescribeDashboard, DescribeTemplate and DescribeAnalysis API response.
* `service/translate`: Updates service API and documentation

### SDK Enhancements
* `service/s3/s3manager`:  Prefer using allocated slices from pool over allocating new ones. ([#3534](#3534))
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

4 participants