Skip to content

Soft-reset the module between handler calls #716

@leoyvens

Description

@leoyvens

After #702 we re-instantiate the WASM runtime between each call, to free memory and ensure no state is carried over. This works well, but it can cost us a couple milliseconds on each call. A soft reset of the module, which means resetting memory contents and size, and also global state, would likely be more performant. This was attempted in this branch with no success. Parity needs to do similar things with their runtime, so we may be able to cooperate with them when revisiting this in the future.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions