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

Re: Shrink the git binary a bit by avoiding unnecessary inline functions

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Jun 23, 2008, 04:54 UTC
Message-ID
<alpine.LFD.1.10.0806222150180.2926@woody.linux-foundation.org>
In-Reply-To
<46d6db660806221801j7207e6b0sdf91c2243fad5349@mail.gmail.com>
On Mon, 23 Jun 2008, Christian MICHON wrote:
Show 5 quoted lines
> 
> There's more than 80k difference with your figures (I have not even
> applied your patch yet).
> May I ask which version of gcc you're using ? The numbers you provided
> were really with -Os ?
gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) 
Also notice that this is x86-64, maybe you're 32-bit? 

You also have much smaller size difference (616606 -> 591554 is just over 16kB), but if my version of gcc bloats things up more, then I'm not surprised that the difference is bigger too.

			Linus
Previous: Christian MICHONNext: Christian MICHON
Message 4 of 7 in “Shrink the git binary a bit by avoiding unnecessary inline functions”
  1. Linus TorvaldsJun 22, 2008
  2. Christian MICHONJun 22, 2008
  3. Christian MICHONJun 23, 2008
  4. Linus TorvaldsJun 23, 2008
  5. Christian MICHONJun 23, 2008
  6. Matthieu MoyJun 22, 2008
  7. Linus TorvaldsJun 22, 2008

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.