From: Daniel Barkalow <barkalow@iabervon.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [RFC PATCH] Reduce the number of connects when fetching
Date: Mon, 5 Nov 2007 22:04:49 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.64.0711052150340.7357@iabervon.org> (raw)
In-Reply-To: <7v1wb4kuoc.fsf@gitster.siamese.dyndns.org>
On Mon, 5 Nov 2007, Junio C Hamano wrote:
> Daniel Barkalow <barkalow@iabervon.org> writes:
>
> > The idea is to keep the open connection in the data for the transport in
> > between getting the list of refs and doing anything further. This
> > therefore moves the connection-handling aspects outside of fetch-pack()
> > and handles them primarily in transport.c.
>
> The idea is very sound. The scripted version of git-fetch used
> a separate ls-remote only because peek-remote and fetch-pack
> were separate programs.
I figured that had to be the case, due to the way the protocol acts at the
beginning.
> > ... In particular, I don't know if there's a way to have the
> > connection end up in a state where objects for more refs can be requested
> > after some refs have been requested and the resulting objects read.
>
> The upload-pack protocol goes "S: here are what I have, C: I
> want these, C: I have these, S: ok, continue, C: I have these,
> S: ok, continue, C: I have these, S: ok, I've heard enough, C:
> done, S: packfile is here", so after packfile generation starts
> there is nothing further the downloader can say.
>
> Otherwise you would be able to do the tag following using the
> same connection, but that is unfortunately not a case.
It would be nice if this could continue: "C: I also want these, S: ok,
heard enough, C: done, S: another packfile is here"; we should be able to
identify the end of the packfile on both ends to resume doing other
things.
Or, maybe, "C: I also want these single objects, S: here's a thin pack of
them", since it's exclusively tags pointing to objects we have just
gotten.
-Daniel
*This .sig left intentionally blank*
next prev parent reply other threads:[~2007-11-06 3:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-04 21:28 [RFC PATCH] Reduce the number of connects when fetching Daniel Barkalow
2007-11-06 1:51 ` Junio C Hamano
2007-11-06 3:04 ` Daniel Barkalow [this message]
2007-11-06 5:03 ` Junio C Hamano
2007-11-06 8:13 ` Johannes Sixt
2007-11-06 8:34 ` Junio C Hamano
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0711052150340.7357@iabervon.org \
--to=barkalow@iabervon.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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.
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 NNTP newsgroup(s).