From 96930bd6eaca40ff5a47d8bfe8e1c3a078d76057 Mon Sep 17 00:00:00 2001 From: stasatdaglabs <39559713+stasatdaglabs@users.noreply.github.com> Date: Sun, 7 Jun 2020 09:19:28 +0300 Subject: [PATCH] [NOD-1039] Remove the call to SetGCPercent. (#745) --- kaspad.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/kaspad.go b/kaspad.go index 7293f0036..5d33de171 100644 --- a/kaspad.go +++ b/kaspad.go @@ -10,7 +10,6 @@ import ( "os" "path/filepath" "runtime" - "runtime/debug" "runtime/pprof" "strings" "time" @@ -265,12 +264,6 @@ func main() { // Use all processor cores. runtime.GOMAXPROCS(runtime.NumCPU()) - // Block and transaction processing can cause bursty allocations. This - // limits the garbage collector from excessively overallocating during - // bursts. This value was arrived at with the help of profiling live - // usage. - debug.SetGCPercent(10) - // Up some limits. if err := limits.SetLimits(); err != nil { fmt.Fprintf(os.Stderr, "failed to set limits: %s\n", err)