Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Unified Diff: docs/ios/build_instructions.md

Issue 2876983004: [Docs] Update the Mac and iOS docs for `git status` perf improvements. (Closed)
Patch Set: is -> ends with Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | docs/mac_build_instructions.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/ios/build_instructions.md
diff --git a/docs/ios/build_instructions.md b/docs/ios/build_instructions.md
index 9aa253994a7d69df05470e7ddc091ef2cd006e03..b841bee2513f7e168a90011449fcce063c5a1f38 100644
--- a/docs/ios/build_instructions.md
+++ b/docs/ios/build_instructions.md
@@ -260,6 +260,8 @@ is open before checking out. This will increase your chances of success.
### Improving performance of `git status`
+#### Increase the vnode cache size
+
`git status` is used frequently to determine the status of your checkout. Due
to the large number of files in Chromium's checkout, `git status` performance
can be quite variable. Increasing the system's vnode cache appears to help.
@@ -286,8 +288,22 @@ $ echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf
Or edit the file directly.
-If `git --version` reports 2.6 or higher, the following may also improve
-performance of `git status`:
+#### Configure git to use an untracked cache
+
+If `git --version` reports 2.8 or higher, try running
+
+```shell
+$ git update-index --test-untracked-cache
+```
+
+If the output ends with `OK`, then the following may also improve performance of
+`git status`:
+
+```shell
+$ git config core.untrackedCache true
+```
+
+If `git --version` reports 2.6 or higher, but below 2.8, you can instead run
```shell
$ git update-index --untracked-cache
« no previous file with comments | « no previous file | docs/mac_build_instructions.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698