Skip to content

storage: use Bytes instead of Vec<u8> to prevent some cloning#3338

Merged
GuillaumeGomez merged 1 commit into
rust-lang:mainfrom
syphar:bytes-storage
May 17, 2026
Merged

storage: use Bytes instead of Vec<u8> to prevent some cloning#3338
GuillaumeGomez merged 1 commit into
rust-lang:mainfrom
syphar:bytes-storage

Conversation

@syphar
Copy link
Copy Markdown
Member

@syphar syphar commented May 17, 2026

Preparation for some parallelization, where I'll have to upload the same blob to more than one location.

our upload_stream API already uses Bytes, so this just makes the rest of the storage API do the same.

@syphar syphar requested a review from a team as a code owner May 17, 2026 07:25
@syphar syphar self-assigned this May 17, 2026
@github-actions github-actions Bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label May 17, 2026
@GuillaumeGomez GuillaumeGomez merged commit 97968ac into rust-lang:main May 17, 2026
14 checks passed
@GuillaumeGomez
Copy link
Copy Markdown
Member

Thanks!

@GuillaumeGomez GuillaumeGomez deleted the bytes-storage branch May 17, 2026 11:01
@github-actions github-actions Bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants