From ec8f5f2a2c862f5e7197797b1509c4b6dd4b3dfd Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Wed, 22 Nov 2017 23:01:56 +0900 Subject: [PATCH] Increase default concurrency --- arguments.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/arguments.go b/arguments.go index 7c7d870..dd945de 100644 --- a/arguments.go +++ b/arguments.go @@ -2,23 +2,13 @@ package main import ( "fmt" - "runtime" "strconv" "time" "github.com/docopt/docopt-go" ) -var defaultConcurrency = func() int { - const max = maxOpenFiles / 2 - n := 8 * runtime.NumCPU() // 8 is an empirical value. - - if n < max { - return n - } - - return max -}() +const defaultConcurrency = maxOpenFiles / 2 const usage = `Link checker for Markdown and HTML