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

[export] #36425

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[export] #36425

wants to merge 1 commit into from

Conversation

copybara-service[bot]
Copy link

[export]
Batch pending rpcs in client and server side before sending them down to tcp. If multiple rpcs get queued up into chaotic good, it should send them out over one tcp endpoint write.


DO NOT SUBMIT. This PR is for testing purposes only. cl/627143927

return [this]() -> Poll<std::vector<T>> {
if (buffer_it_ == buffer_.end()) {
if (center_->PollReceiveBatch(buffer_)) {
buffer_it_ = buffer_.begin();
Copy link
Member

Choose a reason for hiding this comment

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

I think this could be return std::move(buffer_); -- avoiding the loop & move below

Copy link
Contributor

Choose a reason for hiding this comment

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

Fixed it now.

Batch pending rpcs in client and server side before sending them down to tcp. If multiple rpcs get queued up into chaotic good, it should send them out over one tcp endpoint write.

----
DO NOT SUBMIT. This PR is for testing purposes only. [cl/627143927](http://cl/627143927)

PiperOrigin-RevId: 627143927
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants