guix-play/guix/scripts
Ludovic Courtès d8e89b1c79
offload: Reduce the number of calls to 'machine-load'.
Previously we would call 'machine-load' once per machine, which was very
costly when there were many machines.  Now we arrange to call it only
once on average (when all the machines have the same 'speed' value).

* guix/scripts/offload.scm (random-seed, shuffle): New procedures.
(choose-build-machine)[machines+slots+loads]: Rename to...
[machines+slots]: ... this.  Remove load from the tuples therein.
[undecorate]: Adjust accordingly.
[machine-less-loaded-or-faster?]: Remove.
[machine-faster?]: New procedure.
Sort MACHINES+SLOTS according to 'machine-faster?'.  Call
'machine-load?' as the last thing.
2017-10-12 17:51:41 +02:00
..
container
import import: Add JSON importer. 2017-09-28 13:10:11 +02:00
system guix system: Add 'search' command. 2017-09-16 17:47:46 +02:00
archive.scm scripts: Remove 'max-silent-time' from the default options. 2017-09-01 10:29:39 +02:00
authenticate.scm
build.scm guix: Revert accidentally committed changes. 2017-09-28 16:34:12 +02:00
challenge.scm
container.scm
copy.scm scripts: Remove 'max-silent-time' from the default options. 2017-09-01 10:29:39 +02:00
download.scm guix download: Honor mirrors when using '-o'. 2017-09-14 23:34:35 +02:00
edit.scm
environment.scm scripts: Remove 'max-silent-time' from the default options. 2017-09-01 10:29:39 +02:00
gc.scm
graph.scm derivations: Introduce 'read-derivation-from-file'. 2017-06-12 17:53:51 +02:00
hash.scm
import.scm import: Add JSON importer. 2017-09-28 13:10:11 +02:00
lint.scm lint: Remove extra newline. 2017-10-09 23:17:49 +02:00
offload.scm offload: Reduce the number of calls to 'machine-load'. 2017-10-12 17:51:41 +02:00
pack.scm scripts: Remove 'max-silent-time' from the default options. 2017-09-01 10:29:39 +02:00
package.scm guix package: '--upgrade' no longer reverses package order. 2017-10-07 17:08:32 +02:00
perform-download.scm derivations: Introduce 'read-derivation-from-file'. 2017-06-12 17:53:51 +02:00
publish.scm publish: Cache uncompressed nars as well. 2017-10-05 23:05:06 +02:00
pull.scm pull: Add GUIX_PULL_URL environment variable. 2017-10-07 23:01:52 +02:00
refresh.scm guix: lint: Add checker for new upstream versions. 2017-10-09 14:05:17 +03:00
size.scm size: Default to '--sort=self'. 2017-09-07 13:57:42 +02:00
substitute.scm substitute: Close the progress port after substitute finished. 2017-10-12 22:31:22 +08:00
system.scm guix system: Error out when passed a wrong file system UUID/label. 2017-10-05 12:09:17 +02:00
weather.scm weather: Show "-m" option in help message. 2017-07-27 11:47:50 +02:00