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

Re: [darcs-devel] Re: Darcs-git pulling from the Linux repo: a Linux VM question

From
David Roundy <droundy@abridgegame.org>
Date
Apr 29, 2005, 11:25 UTC
Message-ID
<20050429112541.GA15698@abridgegame.org>
In-Reply-To
<7ir7guj4m6.fsf@lanthane.pps.jussieu.fr>
On Thu, Apr 28, 2005 at 05:36:01PM +0200, Juliusz Chroboczek wrote:
Show 6 quoted lines
> > When we're desperate, we'll special-case the initial commit, but
> > currently I'm sure we can pretty easily adjust things by making the
> > git-tree-reading lazy,
> 
> Just to make it clear: reading the git tree is lazy.  The problem is
> somewhere in the higher layers, probably in pull_cmd.

I guess really that's the issue. Get itself is a special case that we've already optimized for the initial get. You'll also run into trouble using pull to grab an entire plain old darcs repository with a large initial commit. We can (and should) also optimize pull, but it's not going to ever be as efficient as a get is, for the case where you start with an empty repository.

> There's also another problem: reading the git tree takes 220MB.  Then
> Darcs allocates a further 500MB without calling my code at all.  (Some
> of it is doubtless due to linesPS, that should be more than a handful
> of megabytes.)
The output of linesPS actually does take a huge amount of space.
-- 
David Roundy
http://www.darcs.net
Previous: Juliusz Chroboczek
Message 7 of 7 in “Darcs-git pulling from the Linux repo: a Linux VM question”
  1. Juliusz ChroboczekApr 27, 2005
  2. Linus TorvaldsApr 27, 2005
  3. Juliusz ChroboczekApr 27, 2005
  4. Linus TorvaldsApr 27, 2005
  5. David RoundyApr 28, 2005
  6. Juliusz ChroboczekApr 28, 2005
  7. David RoundyApr 29, 2005

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.