From 695115a105b9cd0d5cfcfc30ca9139857ca8ee1d Mon Sep 17 00:00:00 2001 From: Debadree Chatterjee Date: Tue, 28 Mar 2023 12:38:36 +0530 Subject: [PATCH] src: increase default semi space size to 64mb Refs: https://github.com/nodejs/performance/issues/67 --- src/node.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node.cc b/src/node.cc index 2aba7333d92513..7fcc60cf4668dd 100644 --- a/src/node.cc +++ b/src/node.cc @@ -779,6 +779,8 @@ static ExitCode InitializeNodeWithArgsInternal( // is security relevant, for Node it's less important. V8::SetFlagsFromString("--no-freeze-flags-after-init"); + V8::SetFlagsFromString("--max_semi_space_size=64"); + #if defined(NODE_V8_OPTIONS) // Should come before the call to V8::SetFlagsFromCommandLine() // so the user can disable a flag --foo at run-time by passing