diff --git a/src/flags.ts b/src/flags.ts index 11ec1c7..3c61708 100644 --- a/src/flags.ts +++ b/src/flags.ts @@ -92,7 +92,7 @@ export function computeFlags(system: SystemInfo, options: ComputeFlagsOptions = logger.log(`Setting Pi JS heap size to: ${heap}MB`); b.addValue( 'js-flags', - `--expose-gc --max-old-space-size=${heap} --gc-global --always-compact --optimize-for-size --max-semi-space-size=1 --initial-heap-size=${Math.floor(heap / 4)}` + `--expose-gc --max-old-space-size=${heap} --gc-global --optimize-for-size --max-semi-space-size=1 --initial-heap-size=${Math.floor(heap / 4)}` ); } } else if (gen === 4) { @@ -104,7 +104,7 @@ export function computeFlags(system: SystemInfo, options: ComputeFlagsOptions = if (enabled(enable, 'jsHeap')) { const heap = jsHeapSizeMB ?? (system.totalMemMB < 2048 ? 1024 : system.totalMemMB < 4096 ? 1536 : 2048); logger.log(`Setting Pi 4 JS heap size to: ${heap}MB`); - b.addValue('js-flags', `--expose-gc --max-old-space-size=${heap} --gc-global --always-compact --optimize-for-size`); + b.addValue('js-flags', `--expose-gc --max-old-space-size=${heap} --gc-global --optimize-for-size`); } } else if (gen >= 5) { b.addValue('enable-features', 'VaapiVideoDecoder,VaapiVideoEncoder') @@ -172,7 +172,7 @@ export function computeFlags(system: SystemInfo, options: ComputeFlagsOptions = // a meaningful chunk of the budget, so cap it. Left unset on 'high' — not worth the // extra minor-GC frequency when memory isn't the constraint. const semiSpaceFlag = system.memoryTier === 'low' ? ' --max-semi-space-size=2' : system.memoryTier === 'medium' ? ' --max-semi-space-size=4' : ''; - b.addValue('js-flags', `--expose-gc --max-old-space-size=${heap} --gc-global --always-compact --optimize-for-size${semiSpaceFlag}`); + b.addValue('js-flags', `--expose-gc --max-old-space-size=${heap} --gc-global --optimize-for-size${semiSpaceFlag}`); } if (enabled(enable, 'diskCache')) {