Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Cranelift opt level to Speed. #5010

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion oak_functions_service/src/wasm/wasmtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ impl WasmtimeHandler {
logger: Arc<dyn OakLogger>,
observer: Option<Arc<dyn Observer + Send + Sync>>,
) -> anyhow::Result<Self> {
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)
Expand Down
Loading