8000 Avoid rbuf copying on the first read by marshall-lee · Pull Request #15 · ruby/net-protocol · GitHub
[go: up one dir, main page]

Skip to content

Avoid rbuf copying on the first read #15

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

Closed

Conversation

marshall-lee
Copy link

When the caller doesn't specify the destination, there's no need to append the rbuf to empty string - the rbuf slice itself could be used as initial dest value.

When the caller doesn't specify the destination, there's no need
to append the rbuf to empty string - the rbuf slice itself could be
used as initial dest value.
@marshall-lee marshall-lee deleted the optimize/rbuf-consume-initial branch August 31, 2022 10:35< 70BC /a>
@marshall-lee marshall-lee restored the optimize/rbuf-consume-initial branch August 31, 2022 10:39
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.

1 participant
0