Skip to content

Commit

Permalink
chore: reduce WASM memory reservation from 2GB to 256MB.
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Jan 18, 2025
1 parent 08016d2 commit c585d73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/wasm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,8 @@ lazy_static! {
config.native_unwind_info(false);

config.cranelift_opt_level(wasmtime::OptLevel::SpeedAndSize);
config.memory_reservation(0x80000000); // 2GB
config.memory_reservation(0x10000000); // 256MB
config.memory_reservation_for_growth(0);
config.guard_before_linear_memory(false);
config.memory_may_move(false);
config.epoch_interruption(true);
Expand Down

0 comments on commit c585d73

Please sign in to comment.