branch: elpa/git-commit
commit c883fabe28a74d59d996cbef3f742874f3459bc0
Author: Christopher Carlile <christopher.carl...@gmail.com>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    manual: Extend macOS performance notes
    
    According to https://superuser.com/questions/1452865, and my own
    profiling, the native mac `git' executable is much faster than the
    one installed using `nix' or `brew'.  Using the native executable
    as `magit-git-executable' results in much faster response times
    from Magit.
---
 docs/magit.org  | 6 ++++++
 docs/magit.texi | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/docs/magit.org b/docs/magit.org
index 4437bf2ed5..a4ddc2a7eb 100644
--- a/docs/magit.org
+++ b/docs/magit.org
@@ -7999,6 +7999,12 @@ faster ~vfork~ will be used.  (The creation of child 
processes still
 takes about twice as long on Darwin compared to Linux.)  See [fn:mac1]
 for more information.
 
+Additionally, ~git~ installed from a package manager like ~brew~ or ~nix~
+seems to be slower than the native executable. Profile the ~git~
+executable you're running against the one at ~/usr/bin/git~, and if
+you notice a notable difference try using the latter as
+~magit-git-executable~.
+
 [fn:mac1] 
https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-04/msg00201.html
 
 *** Default Bindings
diff --git a/docs/magit.texi b/docs/magit.texi
index 0cadfe1a04..0f9b0c06f3 100644
--- a/docs/magit.texi
+++ b/docs/magit.texi
@@ -9894,6 +9894,12 @@ faster @code{vfork} will be used.  (The creation of 
child processes still
 takes about twice as long on Darwin compared to Linux.)  See 
@footnote{@uref{https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-04/msg00201.html}}
 for more information.
 
+Additionally, @code{git} installed from a package manager like @code{brew} or 
@code{nix}
+seems to be slower than the native executable. Profile the @code{git}
+executable you're running against the one at @code{/usr/bin/git}, and if
+you notice a notable difference try using the latter as
+@code{magit-git-executable}.
+
 @node Default Bindings
 @subsection Default Bindings
 

Reply via email to