Re: Make `git fetch --all` parallel?
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Oct 11, 2016, 23:16 UTC
- Message-ID
- <CACBZZX6pFbu_CWMG+OTxx8L2OEy4X4RqGfQ_+z4zFOhS-zx8zA@mail.gmail.com>
- In-Reply-To
- <20161011225942.tvqbbzxglvu7lldi@sigill.intra.peff.net>
On Wed, Oct 12, 2016 at 12:59 AM, Jeff King <peff@peff.net> wrote:
> I'm not altogether convinced that parallel fetch would be that much > faster, though.
I have local aliases to use GNU parallel for stuff like this, on my git.git which has accumulated 17 remotes:
$ time parallel -j1 'git fetch {}' ::: $(git remote)
real 0m18.265s
$ time parallel -j8 'git fetch {}' ::: $(git remote)
real 0m2.957sIn that case I didn't have any new objects to fetch, but just doing the negotiation in parallel was a lot faster.
So there's big wins in some cases.