guix-commits
[Top][All Lists]
Advanced

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

03/04: ui: Remove the empty string from '%load-extensions'.


From: Ludovic Courtès
Subject: 03/04: ui: Remove the empty string from '%load-extensions'.
Date: Thu, 15 Jun 2017 17:18:53 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit cbee955901b3e252ebdeb8066a2196055149198a
Author: Ludovic Courtès <address@hidden>
Date:   Thu Jun 15 21:58:17 2017 +0200

    ui: Remove the empty string from '%load-extensions'.
    
    * guix/ui.scm (run-guix): Set %LOAD-EXTENSIONS.
---
 guix/ui.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/guix/ui.scm b/guix/ui.scm
index b8cfc65..56fcc00 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)



reply via email to

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