guix-play/guix/scripts
Ludovic Courtès 1cd1d8a7ea
offload: Call 'machine-load' only once per machine.
This fixes a longstanding issue where 'choose-build-machine' would make
on average O(N log(N)) calls to 'machine-load', plus an extra call for
the selected machine, instead of N calls.

* guix/scripts/offload.scm (machine-load): Add comment.
(machine-power-factor, machine-less-loaded-or-faster?): Remove.
(choose-build-machine)[machines+slots]: Rename to...
[machines+slots+loads]: ... this.
[undecorate]: Adjust accordingly.
[machine-less-loaded-or-faster?]: New procedure.
Remove extra 'machine-load' call in body.
2016-11-26 23:21:37 +01:00
..
container
import ui: Do not shadow '_' where it's used as a literal syntax match. 2016-09-20 23:22:42 +09:00
archive.scm Use (ice-9 binary-ports) instead of (rnrs io ports). 2016-10-19 15:54:10 +02:00
authenticate.scm Use (ice-9 binary-ports) instead of (rnrs io ports). 2016-10-19 15:54:10 +02:00
build.scm guix build: Add '--with-graft'. 2016-10-17 23:59:02 +02:00
challenge.scm challenge: Disable grafting. 2016-07-14 19:07:07 +02:00
container.scm
download.scm guix download: Add '-o' option. 2016-11-16 18:00:41 +01:00
edit.scm edit: Do not honor 'GUIX_BUILD_OPTIONS'. 2016-08-19 17:34:37 +02:00
environment.scm container: Pass a list of <file-system> objects as things to mount. 2016-11-10 18:01:44 +01:00
gc.scm guix gc: Display of saved space for garbage collection. 2016-07-16 14:41:39 +02:00
graph.scm graph: Add '%referrer-node-type'. 2016-10-15 23:46:39 +02:00
hash.scm guix hash: Interpret '-' as standard input. 2016-10-28 22:30:17 +02:00
import.scm import: Gracefully report import failures. 2016-05-17 14:02:48 +02:00
lint.scm lint: Add 'mirror-url' checker. 2016-11-19 18:44:53 +01:00
offload.scm offload: Call 'machine-load' only once per machine. 2016-11-26 23:21:37 +01:00
package.scm profiles: Extract a procedure for getting relative generation numbers. 2016-11-06 18:08:53 +01:00
perform-download.scm daemon: Add "builtin:download" derivation builder. 2016-11-16 18:19:47 +01:00
publish.scm Use (ice-9 binary-ports) instead of (rnrs io ports). 2016-10-19 15:54:10 +02:00
pull.scm
refresh.scm Use (ice-9 binary-ports) instead of (rnrs io ports). 2016-10-19 15:54:10 +02:00
size.scm size: Fix corner case with multiple items on the command line. 2016-07-29 22:32:04 +02:00
substitute.scm substitute: Disable HTTPS certificate verification. 2016-11-12 13:04:45 +01:00
system.scm store: Add 'references*'. 2016-11-19 18:44:53 +01:00