diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-03-06 13:32:47 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-03-06 13:32:47 -0400 |
commit | ac0dcdeeeb9f970419b9cee571e6438bc93b0785 (patch) | |
tree | fccef7d2ce120bc57cae1c2cfac4c59a4f41ce88 /CHANGELOG | |
parent | b810f6903b7941f82b180f6399025b4266ee1c57 (diff) |
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.
Diffstat (limited to 'CHANGELOG')
-rw-r--r-- | CHANGELOG | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -5,6 +5,8 @@ git-annex (6.20170301.2) UNRELEASED; urgency=medium * status: Propigate nonzero exit code from git status. * Linux standalone builds put the bundled ssh last in PATH, so any system ssh will be preferred over it. + * assistant: Add 1/200th second delay between checking each file + in the full transfer scan, to avoid using too much CPU. -- Joey Hess <id@joeyh.name> Thu, 02 Mar 2017 12:51:40 -0400 |