Skip to content

Commit

Permalink
perf: increase max-semi-space-size for less GC interruptions at the c…
Browse files Browse the repository at this point in the history
  • Loading branch information
TimBeyer committed Aug 22, 2023
1 parent b5b9f51 commit 6eaa481
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/garden
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

repo_root=$(cd `dirname $0` && cd .. && pwd)

node --max-old-space-size=4096 ${repo_root}/cli/bin/garden "$@"
node --max-old-space-size=4096 --max-semi-space-size=64 ${repo_root}/cli/bin/garden "$@"
2 changes: 1 addition & 1 deletion cli/bin/garden-debug
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env node --inspect --stack-trace-limit=1000
#!/usr/bin/env node --inspect --stack-trace-limit=1000 --max-semi-space-size=64

require("./garden")
2 changes: 1 addition & 1 deletion cli/src/build-pkg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const pkgPath = resolve(repoRoot, "cli", "node_modules", ".bin", "pkg")
const distPath = resolve(repoRoot, "dist")

// Allow larger heap size than default
const nodeOptions = ["max-old-space-size=4096"]
const nodeOptions = ["max-old-space-size=4096", "max-semi-space-size=64"]

/* eslint-disable no-console */

Expand Down

0 comments on commit 6eaa481

Please sign in to comment.