refs #18438
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
"io/ioutil"
"os"
"os/exec"
+ "runtime/debug"
"strings"
"git.arvados.org/arvados.git/lib/cmd"
})
)
+func init() {
+ if os.Getenv("GOGC") == "" {
+ debug.SetGCPercent(30)
+ }
+}
+
func Main() {
if !isatty.IsTerminal(os.Stderr.Fd()) {
logrus.StandardLogger().Formatter = &logrus.TextFormatter{DisableTimestamp: true}
"os"
"regexp"
"runtime"
+ "runtime/debug"
"sort"
"strconv"
"strings"
}
}
seq = nil
+ cgs = nil
+ debug.FreeOSMemory()
throttleNumpyMem.Release()
if *mergeOutput || *hgvsSingle {
if err != nil {
return err
}
+ debug.FreeOSMemory()
}
log.Infof("%s: done (%d/%d)", infile, int(atomic.AddInt64(&done, 1)), len(infiles))
return nil