wasm-nginx-module
wasm-nginx-module copied to clipboard
wasm_time_load creating whole wasmtime VM for each bytecode
trafficstars
https://github.com/api7/wasm-nginx-module/blob/0b4b31d6ecfdbc587e8ea455ed6e920a98aadff1/src/vm/wasmtime.c#L114
Correct me if I am wrong but couldn't we just reuse the same VM over and over as long as the VM configuration is the same.
And pretty much loading would be just calling wasmtime_module_new