From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: Jeff King <peff@peff.net>
Cc: Stefan Beller <sbeller@google.com>,
Junio C Hamano <gitster@pobox.com>, Ram Rachum <ram@rachum.com>,
"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: Make `git fetch --all` parallel?
Date: Wed, 12 Oct 2016 01:16:20 +0200 [thread overview]
Message-ID: <CACBZZX6pFbu_CWMG+OTxx8L2OEy4X4RqGfQ_+z4zFOhS-zx8zA@mail.gmail.com> (raw)
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.957s
In 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.
next prev parent reply other threads:[~2016-10-11 23:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-11 20:12 Make `git fetch --all` parallel? Ram Rachum
2016-10-11 20:53 ` Stefan Beller
2016-10-11 22:37 ` Junio C Hamano
2016-10-11 22:50 ` Stefan Beller
2016-10-11 22:58 ` Junio C Hamano
2016-10-11 22:58 ` Stefan Beller
2016-10-11 22:59 ` Jeff King
2016-10-11 23:16 ` Ævar Arnfjörð Bjarmason [this message]
2016-10-11 23:18 ` Stefan Beller
2016-10-12 1:34 ` Jeff King
2016-10-12 1:52 ` Jeff King
2016-10-12 6:47 ` Stefan Beller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CACBZZX6pFbu_CWMG+OTxx8L2OEy4X4RqGfQ_+z4zFOhS-zx8zA@mail.gmail.com \
--to=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
--cc=ram@rachum.com \
--cc=sbeller@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).