git-annex/Assistant/Threads
Joey Hess 9c4650358c
add KeyVariety type
Where before the "name" of a key and a backend was a string, this makes
it a concrete data type.

This is groundwork for allowing some varieties of keys to be disabled
in file2key, so git-annex won't use them at all.

Benchmarks ran in my big repo:

old git-annex info:

real	0m3.338s
user	0m3.124s
sys	0m0.244s

new git-annex info:

real	0m3.216s
user	0m3.024s
sys	0m0.220s

new git-annex find:

real	0m7.138s
user	0m6.924s
sys	0m0.252s

old git-annex find:

real	0m7.433s
user	0m7.240s
sys	0m0.232s

Surprising result; I'd have expected it to be slower since it now parses
all the key varieties. But, the parser is very simple and perhaps
sharing KeyVarieties uses less memory or something like that.

This commit was supported by the NSF-funded DataLad project.
2017-02-24 15:16:56 -04:00
..
Committer.hs Make import --deduplicate and --skip-duplicates only hash once, not twice 2017-02-09 15:32:22 -04:00
ConfigMonitor.hs improve data type 2016-01-01 15:56:24 -04:00
Cronner.hs get, move, copy, mirror: Added --failed switch which retries failed copies/moves 2016-08-03 12:37:12 -04:00
DaemonStatus.hs update my email address and homepage url 2015-01-21 12:50:09 -04:00
Glacier.hs get, move, copy, mirror: Added --failed switch which retries failed copies/moves 2016-08-03 12:37:12 -04:00
Merger.hs clean up some imports 2016-12-27 16:29:29 -04:00
MountWatcher.hs remove xmpp support 2016-11-14 14:53:08 -04:00
NetWatcher.hs remove xmpp support 2016-11-14 14:53:08 -04:00
PairListener.hs include problem PairData in error message 2017-02-13 15:54:28 -04:00
ProblemFixer.hs update my email address and homepage url 2015-01-21 12:50:09 -04:00
Pusher.hs remove xmpp support 2016-11-14 14:53:08 -04:00
RemoteControl.hs remotedaemon: Fork to background by default. Added --foreground switch to enable old behavior. 2016-11-20 14:50:36 -04:00
SanityChecker.hs add KeyVariety type 2017-02-24 15:16:56 -04:00
TransferPoller.hs get, move, copy, mirror: Added --failed switch which retries failed copies/moves 2016-08-03 12:37:12 -04:00
Transferrer.hs get, move, copy, mirror: Added --failed switch which retries failed copies/moves 2016-08-03 12:37:12 -04:00
TransferScanner.hs remove xmpp support 2016-11-14 14:53:08 -04:00
TransferWatcher.hs get, move, copy, mirror: Added --failed switch which retries failed copies/moves 2016-08-03 12:37:12 -04:00
Upgrader.hs use more general module 2016-04-21 14:32:42 -04:00
UpgradeWatcher.hs make programPath return FilePath not Maybe FilePath 2015-02-28 16:59:52 -04:00
Watcher.hs annex.autocommit can be configured via git-annex config 2017-02-03 13:58:53 -04:00
WebApp.hs webapp: full wormhole pairing UI (untested) 2016-12-27 16:41:35 -04:00