Browse Source

Set default max concurrency based on maxOpenFiles

renovate/configure
Yota Toyama 8 years ago
parent
commit
5fda29a580
  1. 2
      arguments.go

2
arguments.go

@ -10,7 +10,7 @@ import (
)
var defaultConcurrency = func() int {
const max = 512 // Max number of open files is limited to 1024 on Linux.
const max = maxOpenFiles / 2
n := 8 * runtime.NumCPU() // 8 is an empirical value.
if n < max {

Loading…
Cancel
Save