Skip to content

Announcing Hyperlight 0.19.0 - #18

Merged
yoshuawuyts merged 2 commits into
hyperlight-dev:mainfrom
yoshuawuyts:v0.19.0
Nov 5, 2026
Merged

yoshuawuyts merged 2 commits into
hyperlight-dev:mainfrom
yoshuawuyts:v0.19.0

Conversation

@yoshuawuyts

Copy link
Copy Markdown
Contributor

Creates the 0.19.0 release post. Thanks!

Signed-off-by: Yosh <github@yosh.is>
```

As a result of this change snapshots no longer contain a zero-filled heap
region, making them smaller and faster to create, save, and load. Note that

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.

I think this is the change that made things significantly faster? should we share those numbers too @ludfjig

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've applied Ludvig's comment in #18 (comment) and mentioned that guest heap operations are now faster. There is some risk in overwhelming people with too many numbers, so if we were to add a table here I'd probably remove the other section.

@jsturtevant jsturtevant 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.

approve with one comment

@ludfjig ludfjig left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for writing this up. Reads great

Comment on lines +32 to +36
There are however some downsides to these changes: the `load_snapshot` benchmark
has seen a 14% regression, and the `save_snapshot` benchmark has seen a 10–22%
regression. We believe those regressions are acceptable given how much faster
it’s made the other snapshot operations. And we expect to be able to speed these
operations up again in future patches.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm not sure these regressions are true if you consider the full 4-pr stack. IIRC this was only 1 of the prs regression. I think perhaps these did not regress in the grand scheme of things.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fair enough; I'll omit.

## Guest heap is now backed by scratch memory

Heap memory in the guest is now backed by the scratch region, providing a single
value to control. The heap size is now also *variable*, meaning it can continue

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm not sure I'm a big fan of the word "variable". I guess you're referring to the fact that both stack and heap share scratch and how much heap you have depends on how much stack you're using?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that's what I meant. Do you think we should rephrase this or is it better to omit?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think dropping just this sentence hsould be fine

Comment on lines +124 to +125
size. Running out of scratch aborts the guest with `MallocFailed`, rather than
returning a failed allocation.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'd maybe drop this final sentence, it's pretty implementation specific

snapshot or restore. Though note that this value is guest-controlled, and should
be used for diagnostics only.

## Guest heap is now backed by scratch memory

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Guest heap allocations is also faster than before, I think we should call that out, even if just in a sentence (. See hyperlight-dev/hyperlight#1968

Signed-off-by: Yosh <github@yosh.is>
@yoshuawuyts
yoshuawuyts merged commit 9f41202 into hyperlight-dev:main Nov 5, 2026
3 checks passed
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.

3 participants