guix/doc
Ludovic Courtès 9730692d9f
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'.
2021-10-25 19:02:33 +02:00
..
images doc: Update 'Bootstrapping' for further binary seed reduction. 2020-05-22 16:11:52 +02:00
build.scm doc: Build manual translations with 'guile-3.0-latest'. 2021-07-09 17:33:46 +02:00
contributing.texi Add 'guix shell'. 2021-10-25 18:58:18 +02:00
environment-gdb.scm doc: Add 'guix environment' examples. 2015-06-29 23:08:36 +02:00
fdl-1.3.texi doc: Use HTTPS for external links. 2020-03-10 20:26:52 +01:00
guix-cookbook.texi doc: cookbook: Mention translations of the cookbook. 2021-10-04 16:36:58 +02:00
guix.texi shell: Maintain a profile cache. 2021-10-25 19:02:33 +02:00
he-config-bare-bones.scm Move (gnu home-services) to (gnu home services). 2021-10-09 19:24:18 +03:00
htmlxref.cnf doc: Update htmlxref.cnf. 2021-10-04 16:36:58 +02:00
local.mk doc: Set LC_ALL when translating xref commands. 2021-10-22 02:32:06 +02:00
package-hello.json doc: Document building and installing from JSON files. 2020-04-16 23:41:52 +02:00
package-hello.scm doc: Use the recommended Scheme format. 2015-09-14 23:10:58 +02:00