Skip to content

Skip an intermediate Vec in Server::fetch_all#1021

Merged
sgrif merged 1 commit into
mainfrom
sg-skip-allocation
May 29, 2026
Merged

Skip an intermediate Vec in Server::fetch_all#1021
sgrif merged 1 commit into
mainfrom
sg-skip-allocation

Conversation

@sgrif
Copy link
Copy Markdown
Contributor

@sgrif sgrif commented May 28, 2026

This in theory could potentially do more work in the error case, since we're running T::from on all rows before the error occurred, but From is generally expected to be quite cheap, and is unlikely to be significantly more costly than the intermediate Vec. And we will always be doing less work in the success case which is more important

This in theory could potentially do more work in the error case, since
we're running `T::from` on all rows before the error occurred, but
`From` is generally expected to be quite cheap, and is unlikely to be
significantly more costly than the intermediate Vec. And we will
*always* be doing less work in the success case which is more important
@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sgrif sgrif marked this pull request as ready for review May 28, 2026 19:56
@sgrif sgrif merged commit 7bbc40b into main May 29, 2026
24 checks passed
@sgrif sgrif deleted the sg-skip-allocation branch May 29, 2026 16:12
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