From ca7eb9aff744c384ee290e2a3e3c27ae5bf7fe85 Mon Sep 17 00:00:00 2001 From: yetone Date: Sat, 31 Oct 2026 15:11:58 +0800 Subject: [PATCH] gui: underTightGC's comment names the room a tight GC leaves a small heap The comment still said a tight GC lets the heap grow by a tenth. Since v0.1.2331 it grows by tightGCRoom (32 MB) when that is more (tightPercent). Comment only. gofmt clean; nothing else to run. --- internal/gui/sessions.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/gui/sessions.go b/internal/gui/sessions.go index 92ea09406..04b5d2273 100644 --- a/internal/gui/sessions.go +++ b/internal/gui/sessions.go @@ -763,8 +763,9 @@ func coldTurn(h http.HandlerFunc) http.HandlerFunc { } } -// underTightGC runs fn letting the heap grow by a tenth of what it holds -// before a collection, not Go's default of all of it, and then puts back +// underTightGC runs fn letting the heap grow by a tenth of what it holds, +// or by tightGCRoom when that is more (tightPercent), before a +// collection, not Go's default of all of it, and then puts back // what was set; a GOGC the user set lower, or off, is kept. The usage // page's read of the whole history holds every row of it at once (~270 MB // live for 390k calls), and a cold start that rests at ~200 MB peaked at