cat-file resource pool
Avoid running a large number of git cat-file child processes when run with a large -J value. This implementation takes care to avoid adding any overhead to git-annex when run without -J. When run with -J, there is a small bit of added overhead, to manipulate the resource pool. That optimisation added a fair bit of complexity.
This commit is contained in:
parent
87b7b0f202
commit
cee6b344b4
14 changed files with 243 additions and 47 deletions
|
@ -11,6 +11,7 @@ import Utility.PartialPrelude
|
|||
-- the former specifies 1 job of each particular kind, but there can be
|
||||
-- more than one kind of job running concurrently.
|
||||
data Concurrency = NonConcurrent | Concurrent Int | ConcurrentPerCpu
|
||||
deriving (Eq)
|
||||
|
||||
parseConcurrency :: String -> Maybe Concurrency
|
||||
parseConcurrency "cpus" = Just ConcurrentPerCpu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue