make sure consumers always have plenty of work to do

This commit is contained in:
Andre Medeiros 2021-07-08 23:56:03 -04:00
parent 5cd3eeab09
commit fb9741f7e0

View file

@ -126,7 +126,7 @@ func main() {
}
numConsumers := runtime.NumCPU() * 12
prefetchLimit := int64(numConsumers * 2)
prefetchLimit := int64(numConsumers * 32)
runtime.GOMAXPROCS(numConsumers)