guix-kreyren/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
archive.scm
authenticate.scm
build.scm
challenge.scm
container.scm
download.scm guix download: Add '-o' option. 2016-11-16 18:00:41 +01:00
edit.scm
environment.scm
gc.scm
graph.scm
hash.scm
import.scm
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
perform-download.scm daemon: Add "builtin:download" derivation builder. 2016-11-16 18:19:47 +01:00
publish.scm
pull.scm
refresh.scm
size.scm
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