PR Worker: Return nil on error by jarifibrahim · Pull Request #5414 · dgraph-io/dgraph · GitHub reduces the memory used by
(pprof) list processTask
. 1.91GB 887: out, err := qs.helpProcessTask(ctx, q, gid)
. . 888: if err != nil {
4.50MB 4.45GB 889: return &pb.Result{}, err // Create this object once, use it repeatedly.
. . 890: }
. 4.97GB 891: return out, nil
. . 892:}