wasm-nginx-module icon indicating copy to clipboard operation
wasm-nginx-module copied to clipboard

wasm_time_load creating whole wasmtime VM for each bytecode

Open dev-null-undefined opened this issue 1 year ago • 0 comments
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

dev-null-undefined avatar Aug 01 '24 09:08 dev-null-undefined