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

Re: [PATCH] update-index/diff-index: use core.preloadindex to improve performance

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Oct 30, 2012, 10:15 UTC
Message-ID
<CABPQNSb6QzxxJpoackhzRz19UWwpxjJ6MPEeptTU9Z0bEaAB+A@mail.gmail.com>
In-Reply-To
<OF831F4AE9.23F46743-ONC1257AA7.00353C1F-C1257AA7.00361535@dcon.de>
On Tue, Oct 30, 2012 at 10:50 AM,  <karsten.blees@dcon.de> wrote:
Show 18 quoted lines
> 'update-index --refresh' and 'diff-index' (without --cached) don't honor
> the core.preloadindex setting yet. Porcelain commands using these (such as
> git [svn] rebase) suffer from this, especially on Windows.
>
> Use read_cache_preload to improve performance.
>
> Additionally, in builtin/diff.c, don't preload index status if we don't
> access the working copy (--cached).
>
> Results with msysgit on WebKit repo (2GB in 200k files):
>
>                 | update-index | diff-index | rebase
> ----------------+--------------+------------+---------
> msysgit-v1.8.0  |       9.157s |    10.536s | 42.791s
> + preloadindex  |       9.157s |    10.536s | 28.725s
> + this patch    |       2.329s |     2.752s | 15.152s
> + fscache [1]   |       0.731s |     1.171s |  8.877s
>
Wow, awesome results :)

This also makes me want to play around with the fscache stuff a bit; about an order of magnitude improvement is quite noticeable :)

-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en
Previous: karsten.blees@dcon.deNext: Albert Krawczyk
Message 2 of 9 in “update-index/diff-index: use core.preloadindex to improve performance”
  1. update-index/diff-index: use core.preloadindex to improve performancekarsten.blees@dcon.de, Oct 30, 2012
  2. Erik Faye-LundOct 30, 2012
  3. Albert KrawczykOct 30, 2012
  4. Jeff KingNov 2, 2012
  5. Jeff KingNov 2, 2012
  6. karsten.blees@dcon.deNov 13, 2012
  7. Junio C HamanoNov 13, 2012
  8. Karsten BleesNov 13, 2012
  9. karsten.blees@dcon.deNov 13, 2012

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.