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

Re: [PATCH] Avoid unnecessary 'lstat()' calls in 'get_stat_data()'

From
Junio C Hamano <gitster@pobox.com>
Date
May 10, 2009, 04:20 UTC
Message-ID
<7v8wl5613c.fsf@alter.siamese.dyndns.org>
In-Reply-To
<alpine.LFD.2.01.0905091501460.3586@localhost.localdomain>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 10 quoted lines
> From: Linus Torvalds <torvalds@linux-foundation.org>
> Date: Sat, 9 May 2009 14:57:30 -0700
>
> When we ask get_stat_data() to get the mode and size of an index entry,
> ...
> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
> ---
> I sent this as part of the "make 'git checkout' preload the index" patch, 
> but since the preloading was of somewhat dubious value, and this part of 
> it is not, I'll just send this one-liner as an "obvious performance fix".
Oops.

I have been processing the patches in my "after 1.6.3" mailbox from the rc freeze period and have already queued this one, but the re-integration of four branches is taking a bit longer than usual. It takes too much time to run tests (and as a part of my build procedure I do docs, too) for all integration branches, and until they all pass tests on Debian5 (primary development box) and Fedora9 (at k.org) I do not push the result out, so it is a bit painful for me to replace a patch once a day's testing cycle begins.

I was about ready to push the whole thing out, but with this much improved commit log message, it is _very tempting_ to rewind what I queued and redo today's cycle.

I'll see how many other such (re)-sends I've got; most likely I'll redo today's cycle after replacing what I earlier have queued with this and your 'checkout' one, and also a patch from Dave Olszewski I want to replace with the 'real' one.

Thanks.
Previous: Linus TorvaldsNext: Linus Torvalds
Message 3 of 6 in “Avoid unnecessary 'lstat()' calls in 'get_stat_data()'”
  1. Avoid unnecessary 'lstat()' calls in 'get_stat_data()'Linus Torvalds, May 9, 2009
  2. Teach 'git checkout' to preload the index contentsLinus Torvalds, May 9, 2009
  3. Junio C HamanoMay 10, 2009
  4. Linus TorvaldsMay 10, 2009
  5. Johannes SchindelinMay 10, 2009
  6. Junio C HamanoMay 10, 2009

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.