Skip to content

Conversation

@Snezhkko
Copy link

@Snezhkko Snezhkko commented Dec 5, 2025

Remove unnecessary allocations on the handshake path.
receive_handshake_msg() now returns the owned buffer instead of cloning a slice, and receive_auth()/receive_ack() move msg_bytes into init_message instead of cloning. This keeps behavior unchanged while reducing copies and heap traffic during auth/ack processing.

@Snezhkko Snezhkko requested a review from a team as a code owner December 5, 2025 12:35
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