aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludovic.courtes@inria.fr>2017-06-15 21:58:17 +0200
committerLudovic Courtès <ludo@gnu.org>2017-06-15 23:07:47 +0200
commitcbee955901b3e252ebdeb8066a2196055149198a (patch)
treee29fe4da8626ba01bb2c72ee33ed9a7f5a9fc342
parent7ebc6cf869006a2a568b09cc6b435961f399a20a (diff)
downloadgnu-guix-cbee955901b3e252ebdeb8066a2196055149198a.tar
gnu-guix-cbee955901b3e252ebdeb8066a2196055149198a.tar.gz
ui: Remove the empty string from '%load-extensions'.
* guix/ui.scm (run-guix): Set %LOAD-EXTENSIONS.
-rw-r--r--guix/ui.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/guix/ui.scm b/guix/ui.scm
index b8cfc651a2..56fcc00300 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -1326,6 +1326,10 @@ Unlike 'guix-main', this procedure assumes that locale, i18n support,
and signal handling has already been set up."
(define option? (cut string-prefix? "-" <>))
+ ;; The default %LOAD-EXTENSIONS includes the empty string, which doubles the
+ ;; number of 'stat' calls per entry in %LOAD-PATH. Shamelessly remove it.
+ (set! %load-extensions '(".scm"))
+
(match args
(()
(format (current-error-port)