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.
This commit is contained in:
yetone
2026-10-31 15:11:58 +08:00
parent 7baa473f22
commit ca7eb9aff7
+3 -2
View File
@@ -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