Skip to content

Commit

Permalink
chore: using aggressive gc strategies for wasm
Browse files Browse the repository at this point in the history
Signed-off-by: Zxilly <[email protected]>
  • Loading branch information
Zxilly committed Jul 16, 2024
1 parent 25582c5 commit cad3fb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/utils/gc_wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"runtime/debug"
)

// WasmMemoryLimit use 3 GB memory limit
const WasmMemoryLimit = 3 * 1024 * 1024 * 1024
// WasmMemoryLimit use 2 GB memory limit
const WasmMemoryLimit = 2 * 1024 * 1024 * 1024

func ApplyMemoryLimit() {
debug.SetMemoryLimit(WasmMemoryLimit)
Expand Down

0 comments on commit cad3fb5

Please sign in to comment.