Thanks for filing a feature request! Please fill out the TODOs below.
Feature
I’d like an option (or default) for wasmtime serve
to reuse a component for multiple requests. e.g. wasmtime serve --reuse
or wasmtime serve --no-reuse
Benefit
Amortize costly runtime or application initialization across multiple requests.
Implementation
Not sure!
Alternatives
Use a different wasi-http
host other than wasmtime
in development that supports instance reuse?