diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-03-08 14:49:30 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-03-08 14:49:30 -0400 |
commit | d4ee2d7345b03917bbf543a42c245d379dba0d5a (patch) | |
tree | e1500bd6be6b36dd875f7c38c1fcd271b185159a /CHANGELOG | |
parent | 9fcaecb288d7eb1eeafd1603a6aa44e62063769f (diff) |
get -J: Improve distribution of jobs amoung remotes when there are more jobs than remotes.
It was distributing jobs to remotes that were not being used by any other
job. But, suppose that there are only 2 remotes, and -J10. In such a case,
the first 2 downloads would be distributed amoung the 2 remotes, but
the other 8 would all go to remote #1. Improved by keeping a counter
of how many jobs are assigned to a remote, and prefer remotes with fewer
jobs.
Note use of Data.Map.Strict to avoid blowing up space. I kept the
bang-patterns as-is, although probably not needed with Data.Map.Strict.
This commit was sponsored by Jack Hill on Patreon.
Diffstat (limited to 'CHANGELOG')
-rw-r--r-- | CHANGELOG | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -7,6 +7,8 @@ git-annex (6.20170301.2) UNRELEASED; urgency=medium 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. + * get -J: Improve distribution of jobs amoung remotes when there are more + jobs than remotes. -- Joey Hess <id@joeyh.name> Thu, 02 Mar 2017 12:51:40 -0400 |