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

Re: [PATCH][RFC] Add git-archive-tree

From
Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
Sep 17, 2006, 11:54 UTC
Message-ID
<450D3765.9090303@lsrfire.ath.cx>
In-Reply-To
<7v4pvk7jmn.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano schrieb:
Show 11 quoted lines
> Rene Scharfe <rene.scharfe@lsrfire.ath.cx> writes:
> 
>> I then let the two chew away on the kernel repository.  And as 
>> kcachegrind impressively shows, all we do with our trees and 
>> objects is dwarfed by inflate().
> 
> The diff output codepath has a logic that says "if the blob we are 
> dealing with has the same object name as the corresponding blob in 
> the index, and if the index entry is clean (i.e. it is known that the
>  file sitting in the working tree matches the blob), then do not 
> inflate() but use data from that file instead".

Nice idea. The tree traverser would need to provide the filenames relative to the current working directory in addition to the filenames as they are written to the archive. I guess your para-walk tree walker could be useful here. I sadly haven't found the time to look at it, yet, and now it even vanished from the pu branch.

A read is an order of magnitude faster than a deflate of the same data, at least that's what I guess from comparing the runtimes of git-tar-tree and tar. _However_, this doesn't account for I/O costs (in my tests the repo and all checked-out files were cache hot) and for any compression that would certainly be applied to the resulting archive. So the full runtime of archive creation wouldn't be that much shorter.

René
Previous: Junio C Hamano
Message 17 of 17 in “[RFC] Add git-archive-tree”
  1. [RFC] Add git-archive-treeRene Scharfe, Sep 2, 2006
  2. Add support for tgz archive formatRene Scharfe, Sep 2, 2006
  3. Rene ScharfeSep 2, 2006
  4. Franck Bui-HuuSep 2, 2006
  5. Rene ScharfeSep 4, 2006
  6. Junio C HamanoSep 4, 2006
  7. Rene ScharfeSep 4, 2006
  8. Junio C HamanoSep 4, 2006
  9. Franck Bui-HuuSep 5, 2006
  10. Junio C HamanoSep 2, 2006
  11. Rene ScharfeSep 2, 2006
  12. Franck Bui-HuuSep 2, 2006
  13. Rene ScharfeSep 2, 2006
  14. Junio C HamanoSep 2, 2006
  15. Rene ScharfeSep 6, 2006
  16. Junio C HamanoSep 6, 2006
  17. Rene ScharfeSep 17, 2006

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.