emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/exec-path-from-shell d17c4e0b73 094/114: Notes about incre


From: ELPA Syncer
Subject: [nongnu] elpa/exec-path-from-shell d17c4e0b73 094/114: Notes about increasing speed
Date: Tue, 5 Sep 2023 04:00:06 -0400 (EDT)

branch: elpa/exec-path-from-shell
commit d17c4e0b73fc5ffeb2bc28156785c6bdda058654
Author: Steve Purcell <steve@sanityinc.com>
Commit: GitHub <noreply@github.com>

    Notes about increasing speed
---
 README.md | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/README.md b/README.md
index df89f08785..8ba52427a6 100644
--- a/README.md
+++ b/README.md
@@ -100,6 +100,11 @@ appropriately (often to `nil`) before calling
 To learn more about how popular shells load start-up files, read
 [this helpful 
article](https://blog.flowblok.id.au/2013-02/shell-startup-scripts.html).
 
+Making `exec-path-from-shell` faster
+------------------------------------
+
+* Invoking the shell has a non-trivial overhead. Don't call 
`exec-path-from-shell-copy-env` repeatedly, since each invocation starts a 
shell. Instead, set `exec-path-from-shell-variables` to the full list of vars 
you want, and call `exec-path-from-shell-initialize` once.
+* Non-interactive shells start up faster. Follow the steps in the section 
above so that you can run your shell without `-i` and still get the right 
environment variable settings. When `"-i"` is then removed from 
`exec-path-from-shell-arguments`, this package becomes more efficient.
 
 Further help
 ------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]