diff --git a/host/src/process/cache.rs b/host/src/process/cache.rs index bc81b55..df70a73 100644 --- a/host/src/process/cache.rs +++ b/host/src/process/cache.rs @@ -57,7 +57,8 @@ impl Compiler { let _ = rustls::crypto::aws_lc_rs::default_provider().install_default(); let mut config = wasmtime::Config::new(); config.epoch_interruption(true); - config.cranelift_opt_level(wasmtime::OptLevel::None); + // Keep Cranelift's default optimization: compiles are cached per content, and guests run + // many times. OptLevel::None saved only 12.7% of compile time (T15) but slows every run. let mut cache = wasmtime::CacheConfig::new(); cache.with_directory(directory); config.cache(Some(wasmtime::Cache::new(cache)?));