diff options
author | Joey Hess <joey@kitenet.net> | 2014-01-21 18:46:39 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-01-21 18:49:25 -0400 |
commit | 7c3f0eae77b07ccc65c4e30d9eb1288781bd0c02 (patch) | |
tree | af6b86482c4f67f710349677a48917ac29fa404f /GitAnnex | |
parent | d71baf07108c4903c444175ca482af1ed4cca1b4 (diff) |
benchmarked numcopies .gitattributes in preferred content
Checking .gitattributes adds a full minute to a git annex find looking for
files that don't have enough copies. 2:25 increasts to 3:27. I feel this is
too much of a slowdown to justify making it the default. So, exposed two
versions of the preferred content expression, a slow one and a fast but
approximate one.
I'm using the approximate one in the default preferred content expressions
to avoid slowing down the assistant.
Diffstat (limited to 'GitAnnex')
-rw-r--r-- | GitAnnex/Options.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/GitAnnex/Options.hs b/GitAnnex/Options.hs index 10fcc0073..dc9a0be31 100644 --- a/GitAnnex/Options.hs +++ b/GitAnnex/Options.hs @@ -42,8 +42,10 @@ options = Option.common ++ "match files present in a remote" , Option ['C'] ["copies"] (ReqArg Limit.addCopies paramNumber) "skip files with fewer copies" - , Option [] ["numcopiesneeded"] (ReqArg Limit.addNumCopiesNeeded paramNumber) + , Option [] ["lackingcopies"] (ReqArg (Limit.addLackingCopies False) paramNumber) "match files that need more copies" + , Option [] ["approxlackingcopies"] (ReqArg (Limit.addLackingCopies True) paramNumber) + "match files that need more copies (faster)" , Option ['B'] ["inbackend"] (ReqArg Limit.addInBackend paramName) "match files using a key-value backend" , Option [] ["inallgroup"] (ReqArg Limit.addInAllGroup paramGroup) |