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

Re: [PATCH GIT 0.6] make use of register variables & size_t

From
Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org> <7eggert@gmx.de>
Date
Apr 25, 2005, 17:36 UTC
Message-ID
<E1DQ7Vg-0003fq-DC@be1.7eggert.dyndns.org>
In-Reply-To
<3X9X6-5JP-27@gated-at.bofh.it>
Matthias-Christian Ott <matthias.christian@tiscali.de> wrote:
> The "git" didn't try store small variables, which aren't referenced, in
> the processor registers. It also didn't use the size_t type. I corrected
> a C++ style comment too.

I have compared functions using 'register' against functions not doing that. Not using register allowed better optimization on my x86.

-- 
The most dangerous thing in the world is a second lieutenant with a map and
a compass.
Next: Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org>
Message 1 of 2 in “Re: [PATCH GIT 0.6] make use of register variables & size_t”
  1. Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org>Apr 25, 2005
  2. Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org>Apr 26, 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.