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

Re: Make "git rev-list" be a builtin

From
Linus Torvalds <torvalds@osdl.org>
Date
May 18, 2006, 22:00 UTC
Message-ID
<Pine.LNX.4.64.0605181454540.10823@g5.osdl.org>
In-Reply-To
<7vejyrngto.fsf@assigned-by-dhcp.cox.net>
On Thu, 18 May 2006, Junio C Hamano wrote:
Show 8 quoted lines
> Linus Torvalds <torvalds@osdl.org> writes:
> >
> > We should have done this long ago.
> 
> Should we have?
> 
> Certainly it is almost trivial, and it means we need to worry
> about one less file, but is that the point?
Take a look at the size of the binaries before and after.
This is the _stripped_ binaries (on ppc) before:
  -rwxr-xr-x 9 torvalds torvalds 213392 May 18 14:56 git
  -rwxr-xr-x 1 torvalds torvalds 167540 May 18 14:56 git-rev-list
and after:
  -rwxr-xr-x 10 torvalds torvalds 216740 May 18 14:56 git
  -rwxr-xr-x 10 torvalds torvalds 216740 May 18 14:56 git-rev-list

ie the "git" binary grew by about 3kB, and the "git-rev-list" binary shrank by about 164kB (because it now takes zero disk-space: it's the same as the git binary).

So on ppc, you win about 160kB of disk space from this (and much more if you don't strip the binaries - "git-rev-list" is over half a megabyte with the debugging info for me).

Now, x86 probably has less of that, because it's a denser instruction set, but I'd expect that to be in the 100kB range too.

			Linus
Previous: Junio C Hamano
Message 3 of 3 in “Make "git rev-list" be a builtin”
  1. Linus TorvaldsMay 18, 2006
  2. Junio C HamanoMay 18, 2006
  3. Linus TorvaldsMay 18, 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.