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

Re: update-index --assume-unchanged doesn't make things go fast

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 25, 2008, 19:41 UTC
Message-ID
<7v1w2l1ew8.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<m33an1josg.fsf@localhost.localdomain>
Jakub Narebski <jnareb@gmail.com> writes:
Show 31 quoted lines
> "Avery Pennarun" <apenwarr@gmail.com> writes:
>
>> Hi all,
>> 
>> Using git 1.5.6.64.g85fe, but this applies to various other versions
>> I've tried.
>> 
>> I have a git repo with about 17000+ files in 1000+ directories.  In
>> Linux, "git status" runs in under a second, which is perfectly fine.
>> But on Windows, which can apparently only stat() about 1000 files per
>> second, "git status" takes at least 17 seconds to run, even with a hot
>> cache.  (I've confirmed that stat() is so slow on Windows by writing a
>> simple program that just runs stat() in a tight loop.  The slowness
>> may be cygwin-related, as I found some direct Win32 calls that seem to
>> go more than twice as fast... which is still too slow.)
>
> Which git version do you use? Does it have the following configuration
> variable (also available as command option):
>
>   status.showUntrackedFiles::
>         By default, linkgit:git-status[1] and linkgit:git-commit[1] show
>         files which are not currently tracked by Git. Directories which
>         contain only untracked files, are shown with the directory name
>         only. Showing untracked files means that Git needs to lstat() all
>         all the files in the whole repository, which might be slow on some
>         systems. So, this variable controls how the commands displays
>         the untracked files. Possible values are:
>
>         - 'no'     - Show no untracked files
>         - 'normal' - Shows untracked files and directories
>         - 'all'    - Shows also individual files in untracked directories.
That's on 'master' progressing forward to eventually become 1.6.0.
Previous: Jakub NarebskiNext: Avery Pennarun
Message 6 of 16 in “update-index --assume-unchanged doesn't make things go fast”
  1. Avery PennarunJun 25, 2008
  2. Michael J GruberJun 25, 2008
  3. Avery PennarunJun 25, 2008
  4. Michael J GruberJun 26, 2008
  5. Jakub NarebskiJun 25, 2008
  6. Junio C HamanoJun 25, 2008
  7. Avery PennarunJun 25, 2008
  8. Jakub NarebskiJun 25, 2008
  9. Avery PennarunJun 26, 2008
  10. Stephen R. van den BergJun 26, 2008
  11. Avery PennarunJun 27, 2008
  12. Jakub NarebskiJun 27, 2008
  13. Avery PennarunJun 27, 2008
  14. Dana HowJun 27, 2008
  15. Avery PennarunJun 27, 2008
  16. Junio C HamanoJun 28, 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.