4 ms·
https://golang.org/pkg/runtime/debug/#SetGCPercent https://golang.org/pkg/runtime/debug/#SetGCPercent Do note that it triggers a GC when you call this, so it's
by kyrra 10y ago
https://golang.org/pkg/runtime/debug/#SetGCPercent https://golang.org/pkg/runtime/debug/#SetGCPercent
Do note that it triggers a GC when you call this, so it's not for all situations, but can be useful.