Bump gc threshold to 40%

Doing tests, this is a better balance for the threshold in reguards to
memory and cpu usage.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2018-02-02 10:51:59 -05:00
parent db78450e8b
commit 8ee29a17e6
2 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,7 @@ func init() {
} }
func main() { func main() {
debug.SetGCPercent(10) debug.SetGCPercent(40)
go func() { go func() {
for range time.Tick(30 * time.Second) { for range time.Tick(30 * time.Second) {
debug.FreeOSMemory() debug.FreeOSMemory()

View File

@ -4,6 +4,7 @@ import (
google_protobuf "github.com/gogo/protobuf/types" google_protobuf "github.com/gogo/protobuf/types"
) )
// Mount holds filesystem mount configuration
type Mount struct { type Mount struct {
Type string Type string
Source string Source string