From 862a8b5d4ddacf675fd86acdfbc4e51bcae8148e Mon Sep 17 00:00:00 2001 From: pdrobnjak Date: Mon, 9 Feb 2026 19:07:55 +0100 Subject: [PATCH] perf: set GOGC=200 to reduce GC frequency Reduces GC CPU overhead (~17% of total) by allowing the heap to grow larger before triggering collection. Benchmarked at +3.2% avg TPS. Co-Authored-By: Claude Opus 4.6 --- app/app.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/app.go b/app/app.go index dff8b4f301..db19e0d443 100644 --- a/app/app.go +++ b/app/app.go @@ -440,6 +440,8 @@ func New( appOptions []AppOption, baseAppOptions ...func(*baseapp.BaseApp), ) *App { + debug.SetGCPercent(200) + appCodec := encodingConfig.Marshaler cdc := encodingConfig.Amino interfaceRegistry := encodingConfig.InterfaceRegistry