Skip to content

perf(socket): use Bytes instead of Box<[u8]> for Packet type - #530

Open
jbrough wants to merge 1 commit into
johanhelsing:mainfrom
wavey-ai:perf/bytes-packet
Open

perf(socket): use Bytes instead of Box<[u8]> for Packet type#530
jbrough wants to merge 1 commit into
johanhelsing:mainfrom
wavey-ai:perf/bytes-packet

Conversation

@jbrough

@jbrough jbrough commented Jan 3, 2026

Copy link
Copy Markdown

Changes Packet type alias from Box<[u8]> to bytes::Bytes to reduce memory copies when broadcasting messages to multiple peers.

Changes Packet type alias from Box<[u8]> to bytes::Bytes to reduce
memory copies when broadcasting messages to multiple peers.
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