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

消除void TcpConnection::send(Buffer* buf)中buf的copy #700

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

Conversation

xb1520
Copy link

@xb1520 xb1520 commented Dec 2, 2023

消除void TcpConnection::send(Buffer* buf)中buf的copy

retrieveAllAsString函数会生成一个临时的string,造成内存copy,使用std::move消除内存拷贝

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