-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Enhancement]aws sdk get/put object support zero copy #49709
Conversation
Signed-off-by: zombee0 <ewang2027@gmail.com>
Signed-off-by: zombee0 <ewang2027@gmail.com>
body.read(static_cast<char*>(out), count); | ||
_offset += body.gcount(); | ||
return body.gcount(); | ||
_offset += real_length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not reuse outcome.GetResult().GetBody().gcount()
? Can we make sure it always equal to real_length
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iostream's gcount is set after extract operation(like read), we didn't call read at all(we used to call body.read(xxx), and we can set the correct offset even if we had a wrong range #49692)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left a comment. rest LGTM
Signed-off-by: zombee0 <ewang2027@gmail.com>
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[BE Incremental Coverage Report]✅ pass : 17 / 18 (94.44%) file detail
|
Why I'm doing:
What I'm doing:
largely reduced memory copy.

Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check:
Documentation PRs only:
If you are submitting a PR that adds or changes English documentation and have not
included Chinese documentation, then you can check the box to request GPT to translate the
English doc to Chinese. Please ensure to uncheck the Do not translate box if translation is needed.
The workflow will generate a new PR with the Chinese translation after this PR is merged.