Skip to content

perf(core): avoid unnecessary allocations and clones#1981

Merged
shiyasmohd merged 1 commit intomainfrom
shiyasmohd/remove-clones
Mar 16, 2026
Merged

perf(core): avoid unnecessary allocations and clones#1981
shiyasmohd merged 1 commit intomainfrom
shiyasmohd/remove-clones

Conversation

@shiyasmohd
Copy link
Contributor

  • Replace Bytes::to_vec() with Bytes::into() for zero-copy
  • Remove unnecessary .clone()

@shiyasmohd shiyasmohd self-assigned this Mar 15, 2026
@shiyasmohd shiyasmohd merged commit 8f157bf into main Mar 16, 2026
8 checks passed
@shiyasmohd shiyasmohd deleted the shiyasmohd/remove-clones branch March 16, 2026 13:16
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.

2 participants