git-annex/Assistant/Threads
Joey Hess af2a6d578e
assistant: Add 1/200th second delay between checking each file in the full transfer scan, to avoid using too much CPU.
The slowdown is not going to be large in typical small-ish repos.
And it does not seem to matter if the assistant reacts a little bit slower
in situations involving the expensive scan, since:

a) Those situations typically involve getting back in sync after something
   has changed on a remote, often after a disconnect of some duration.
   So taking a few seconds more is not noticable.
b) If the scan finds things that it needs to do, it will start
   blocking anyway after 10 transfers are queued (due to use of
   queueTransferWhenSmall). So, only the speed of finding the first 10
   transfers will be impacted by this change.

This commit was sponsored by Jochen Bartl on Patreon.
2017-03-06 13:32:47 -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 assistant: Add 1/200th second delay between checking each file in the full transfer scan, to avoid using too much CPU. 2017-03-06 13:32:47 -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