diff --git a/oak_functions_service/src/wasm/wasmtime.rs b/oak_functions_service/src/wasm/wasmtime.rs index fe6aa3e5634..023f4b54140 100644 --- a/oak_functions_service/src/wasm/wasmtime.rs +++ b/oak_functions_service/src/wasm/wasmtime.rs @@ -395,7 +395,8 @@ impl WasmtimeHandler { logger: Arc, observer: Option>, ) -> anyhow::Result { - let config = wasmtime::Config::new(); + let mut config = wasmtime::Config::new(); + config.cranelift_opt_level(wasmtime::OptLevel::Speed); let engine = wasmtime::Engine::new(&config) .map_err(|err| anyhow::anyhow!("couldn't create Wasmtime engine: {:?}", err))?; let module = wasmtime::Module::new(&engine, wasm_module_bytes)