Skip to content

Commit

Permalink
fix: change wasmtime's memory reservation from 8GB to 2GB.
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Jan 17, 2025
1 parent fc9617d commit f1fc21d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/wasm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ lazy_static! {
config.native_unwind_info(false);

config.cranelift_opt_level(wasmtime::OptLevel::SpeedAndSize);
config.memory_reservation(0x80000000); // 2GB
config.epoch_interruption(true);
config
};
Expand Down

0 comments on commit f1fc21d

Please sign in to comment.