Skip to content

Conversation

rachgreen33
Copy link
Contributor

@rachgreen33 rachgreen33 commented Sep 17, 2025

Init*Engine methods are not necessary, because warm() itself initializes the engines.

This is a follow-up to #447, which added Init*Engine along with warm functionality.

@rachgreen33 rachgreen33 marked this pull request as ready for review September 18, 2025 14:34
// We skip NullVM because warm() is a noop, and we skip wasmedge because its engine is initialized
// in the constructor vs. on cold start.
if (engine_ == "null" || engine_ == "wasmedge") {
std::cout << "Skipping warm() performance assertions for NullVm." << std::endl;
Copy link
Member

Choose a reason for hiding this comment

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

Nit: This error doesn't mention WasmEdge. Either include the engine_ in the output or split it into two ifs.

Comment on lines +58 to +59
// We skip NullVM because warm() is a noop, and we skip wasmedge because its engine is initialized
// in the constructor vs. on cold start.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe try moving things inside WasmEdge implementation to keep warming-up consistent across all engines, or error out in warm() to signal that it doesn't work.

Alternatively, as discussed in on of the meetings, it's worth considering whether we want to keep WasmEdge at all, since it hasn't been updated in a while, and I'm not aware of anyone using it. cc @mpwarres

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