gotch/ts/init.go
2023-07-04 23:26:20 +10:00

11 lines
191 B
Go

package ts
import (
"runtime/debug"
)
func init() {
// debug.SetMemoryLimit()
debug.SetGCPercent(100) // ratio freshly allocated data to live data remaining after previous collection.
}