From 93394cddcac857b6b62d13a7bb69ab96477abf69 Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Mon, 30 Sep 2024 10:08:27 +0100 Subject: [PATCH] Reduce GC pause from 1sec to 500ms for faster blocks (#7507) --- src/Nethermind/Nethermind.Merge.Plugin/GC/GCKeeper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Nethermind/Nethermind.Merge.Plugin/GC/GCKeeper.cs b/src/Nethermind/Nethermind.Merge.Plugin/GC/GCKeeper.cs index 9b3357f86a1..e2d3a48957d 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin/GC/GCKeeper.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin/GC/GCKeeper.cs @@ -150,8 +150,8 @@ private async Task ScheduleGCInternal() { // This should give time to finalize response in Engine API // Normally we should get block every 12s (5s on some chains) - // Lets say we process block in 2s, then delay 1s, then invoke GC - await Task.Delay(1000); + // Lets say we process block in 2s, then delay 500ms, then invoke GC + await Task.Delay(500); if (GCSettings.LatencyMode != GCLatencyMode.NoGCRegion) {