Merge "Improve memory usage in multiproduct_kati"

This commit is contained in:
LaMont Jones
2023-06-22 15:03:11 +00:00
committed by Gerrit Code Review

View File

@@ -399,6 +399,9 @@ func main() {
var wg sync.WaitGroup
for i := 0; i < jobs; i++ {
wg.Add(1)
// To smooth out the spikes in memory usage, skew the
// initial starting time of the jobs by a small amount.
time.Sleep(15 * time.Second)
go func() {
defer wg.Done()
for {