Skip to content

ByteString clone and FromIterator performance improvements - #160503

Open
fereidani wants to merge 3 commits into
rust-lang:mainfrom
fereidani:bstr
Open

ByteString clone and FromIterator performance improvements#160503
fereidani wants to merge 3 commits into
rust-lang:mainfrom
fereidani:bstr

Conversation

@fereidani

@fereidani fereidani commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

These are minor performance improvements for #134915,
The new FromIterator implementation avoids allocation and copy for the first element and reuses its buffer instead of constructing an empty ByteString.

I also notice that impl ByteString is missing #unstable and fixed it.

r? joshtriplett

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Aug 4, 2026
@rustbot

rustbot commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

joshtriplett is not on the review rotation at the moment.
They may take a while to respond.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants