diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-09-06 12:42:50 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-09-06 12:45:21 -0400 |
commit | d90783a507ef2776cb43e0d55204adb7e91cfea5 (patch) | |
tree | 6e059450d0612966e5434db0d8709968618a4d6d /Command/Wanted.hs | |
parent | 14c485bb43f071e8f7ff2614bf3eb3e7a7ab0065 (diff) |
get -J: Download different files from different remotes when the remotes have the same costs.
Only done in -J mode because only if there's concurrency can downloading
from two remotes be faster. Without concurrency, it's likely the case that
sequential downloads from the same remote are faster than switching back
and forth between two remotes.
There is some hairy MVar code here, but basically it just keeps
the activeremotes MVar full except when deciding which remote to assign
to a thread.
Also affects gets by sync --content -J
This commit was sponsored by Jochen Bartl.
Diffstat (limited to 'Command/Wanted.hs')
0 files changed, 0 insertions, 0 deletions