8000 Make `GuestBinary::Buffer` variant take slice instead of owned vec by ludfjig · Pull Request #559 · hyperlight-dev/hyperlight · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
jprendes merged 1 commit intohyperlight-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 intohyperlight-dev:mainfrom
ludfjig:take_guest_by_ref

Conversation

@ludfjig
Copy link
Contributor
@ludfjig ludfjig commented Jun 3, 2025

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
Copy link
Contributor
qbradley commented Jun 4, 2025

Thanks!

Copy link
Contributor
@jprendes jprendes left a comment

Choose a reason for hiding this comment

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

LGTM

@jprendes jprendes merged commit 4fdab8f into hyperlight-dev:main Jun 4, 2025
25 of 26 checks passed
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

0