Skip to content

Investigate a shared linker with request specific state attached to the wasmtime store #30

@avidal

Description

@avidal

In bytecodealliance/wasmtime-go#260 I added an ability to attach arbitrary data to a Store. This is something that's already supported in the reference Rust implementation of wasmtime.

If (when?) this merges in, we should be able to simplify fastlike. Right now there's a lot of setup and teardown between requests so we can reuse instances out of a pool. Part of that setup and teardown is resetting state and linking instance functions into the wasm module to satisfy the ABI imports.

If we instead track per-request state on the store itself there may be opportunities to clean up fastlike. Filing this issue as a reminder to prototype it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions