summary refs log tree commit diff
path: root/ROADMAP
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-10-01 22:47:33 +0200
committerLudovic Courtès <ludo@gnu.org>2021-10-25 19:02:33 +0200
commit9730692d9f06f8c412b45ef108006921298983c4 (patch)
treef778fff90b81323c47612419710fd26e40f912df /ROADMAP
parent2cb0b3709ace41078872578f657ab0ee45d20ac9 (diff)
downloadguix-9730692d9f06f8c412b45ef108006921298983c4.tar.gz
shell: Maintain a profile cache.
shell: Maintain a profile cache.

With this change, running "guix shell" (no arguments) is equivalent to:

  guix environment -r ~/.cache/guix/profiles/some-root -l guix.scm

This is the cache miss.  On cache hit, it's equivalent to:

  guix environment -p ~/.cache/guix/profiles/some-root

... which can run in 0.1s.

* guix/scripts/shell.scm (options-with-caching): New procedure.
(parse-args): Use it.
(%profile-cache-directory): New variable.
(profile-cache-key, profile-cached-gc-root): New procedures.
(show-help, %options): Add '--rebuild-cache'.
(guix-shell)[cache-entries, entry-expiration]: New procedures.
Add call to 'maybe-remove-expired-cache-entries'.
* doc/guix.texi (Invoking guix shell): Document '--rebuild-cache'.
Diffstat (limited to 'ROADMAP')
0 files changed, 0 insertions, 0 deletions