Skip to content

Make GuestBinary::Buffer variant take slice instead of owned vec - #559

Merged
jprendes merged 1 commit into
hyperlight-dev:mainfrom
ludfjig:take_guest_by_ref
Jun 4, 2025
Merged

Make GuestBinary::Buffer variant take slice instead of owned vec#559
jprendes merged 1 commit into
hyperlight-dev:mainfrom
ludfjig:take_guest_by_ref

Conversation

@ludfjig

@ludfjig ludfjig commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

This avoids copies if making several GuestBinaries from a single buffer. I will follow up this PR with another one that makes Uninitialized::new take a GuestBinary by reference instead of value

Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
@ludfjig ludfjig added the kind/enhancement For PRs adding features, improving functionality, docs, tests, etc. label Jun 3, 2025
@qbradley

qbradley commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

Thanks!

@jprendes jprendes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Labels

kind/enhancement For PRs adding features, improving functionality, docs, tests, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants