ui: Have 'guix help' stat less.
authorLudovic Courtès <ludo@gnu.org>
Mon, 28 Jun 2021 20:52:16 +0000 (22:52 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 28 Jun 2021 22:00:13 +0000 (00:00 +0200)
commitab37731a8d51d968508dda85f1f434f0d3369055
tree19adb337ecfe4442221515e03a4314f67936b056
parente059adcb6001ab0353d969b24030d0c342f8830e
ui: Have 'guix help' stat less.

This reduces the number of syscalls for:

  env -i $(type -P strace) -c $(type -P guix) help

from 4.3K to 2.2K, thereby reducing startup time.

Reported by Julien Lepiller.

* guix/ui.scm (run-guix-command): Move %FILE-PORT-NAME-CANONICALIZATION
to...
(run-guix): ... here.
guix/ui.scm