Skip to content

ByteString clone and FromIterator performance improvements - #160503

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

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.

@rust-bors

rust-bors Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #161783) made this pull request unmergeable. Please resolve the merge conflicts by rebasing.

@fereidani fereidani closed this Aug 26, 2026
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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