git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PU PATCH] Fix git fetch for very large ref counts

From
Junio C Hamano <junkio@cox.net>
Date
Feb 13, 2007, 17:58 UTC
Message-ID
<7vfy9ax7l6.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0702131031180.6435@reaper.quantumfyre.co.uk>
Julian Phillips <julian@quantumfyre.co.uk> writes:
> And there I was thinking 0.5m was fast ... given how long I've been
> reading this list I really should have know better. ;)

Well, the only thing we need to do in fetching between two repositories that are already identical should be to compare ls-remote output from both ends and immediately declare victory, and it is unacceptable for such an obvious no-op to take 30 seconds. At this point it really is the shell loop that is killing us.

> I only really made the changes so I could try your improvements to
> fetch out - if they aren't necessary because you're making it even
> faster then I really don't have much cause to complain.

I've applied your fixes to jc/fetch topic and merged it back to 'pu'. Thanks.

Previous: Julian Phillips
Message 8 of 8 in “Fix git fetch for very large ref counts”
  1. Fix git fetch for very large ref countsJulian Phillips, Feb 13, 2007
  2. Allow fetch--tool to read from stdinJulian Phillips, Feb 13, 2007
  3. Use stdin reflist passing in parse-remoteJulian Phillips, Feb 13, 2007
  4. Use stdin reflist passing in git-fetch.shJulian Phillips, Feb 13, 2007
  5. Linus TorvaldsFeb 13, 2007
  6. Junio C HamanoFeb 13, 2007
  7. Julian PhillipsFeb 13, 2007
  8. Junio C HamanoFeb 13, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.