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

Watchman/inotify support and other ways to speed up git status

From
Christian Couder <christian.couder@gmail.com>
Date
Oct 22, 2015, 05:59 UTC
Message-ID
<CAP8UFD3Cd9SOh6EYwcx9hTVv7P24M5bEJRCYCT5Qgj=qPRJ8hw@mail.gmail.com>
Hi everyone,

I am starting to investigate ways to speed up git status and other git commands for Booking.com (thanks to AEvar) and I'd be happy to discuss the current status or be pointed to relevant documentation or mailing list threads.

>From the threads below ([0], [1], [2], [3], [4], [5], [6], [7], [8]) I
understand that the status is roughly the following:
- instead of working on inotify support it's better to work on using a
cross platform tool like Watchman
- instead of working on Watchman support it is better to work first on
caching information in the index
- git update-index --untracked-cache has been developed by Duy and
others and merged to master in May 2015 to cache untracked status in
the index; it is still considered experimental
- git index-helper has been worked on by Duy but its status is not
clear (at least to me)

Is that correct? What are the possible/planned next steps in this area? improving --untracked-cache? git index-helper? watchman support?

Thanks, Christian.

[0] March 8 2015: [PATCH 00/24] nd/untracked-cache updates http://thread.gmane.org/gmane.comp.version-control.git/265053/

[1] November 11 2014: [RFC] On watchman support http://thread.gmane.org/gmane.comp.version-control.git/259399/

[2] October 27 2014:[PATCH 00/19] Untracked cache to speed up "git status" http://thread.gmane.org/gmane.comp.version-control.git/258766

[3] July 28 2014: [PATCH v3 0/9] Speed up cache loading time http://thread.gmane.org/gmane.comp.version-control.git/254314/

[4] May 7 2014: [PATCH 00/20] Untracked cache to speed up "git status" http://thread.gmane.org/gmane.comp.version-control.git/248306

[5] May 2 2014: Watchman support for git http://thread.gmane.org/gmane.comp.version-control.git/248004/

[6] March 10 2014: http://git.661346.n2.nabble.com/question-about-Facebook-makes-Mercurial-faster-than-Git-tt7605273.html#a7605280

[7] January 29 2014: http://git.661346.n2.nabble.com/inotify-support-nearly-there-tt7602739.html

[8] January 12 2014: http://git.661346.n2.nabble.com/PATCH-0-6-inotify-support-tt7601877.html#a7603955

Next: Duy Nguyen
Message 1 of 8 in “Watchman/inotify support and other ways to speed up git status”
  1. Christian CouderOct 22, 2015
  2. Duy NguyenOct 22, 2015
  3. David TurnerOct 27, 2015
  4. Christian CouderOct 29, 2015
  5. David TurnerNov 2, 2015
  6. Duy NguyenNov 3, 2015
  7. Christian CouderNov 3, 2015
  8. David TurnerNov 3, 2015

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.