d8e89b1c79
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. |
||
---|---|---|
.. | ||
container | ||
import | ||
system | ||
archive.scm | ||
authenticate.scm | ||
build.scm | ||
challenge.scm | ||
container.scm | ||
copy.scm | ||
download.scm | ||
edit.scm | ||
environment.scm | ||
gc.scm | ||
graph.scm | ||
hash.scm | ||
import.scm | ||
lint.scm | ||
offload.scm | ||
pack.scm | ||
package.scm | ||
perform-download.scm | ||
publish.scm | ||
pull.scm | ||
refresh.scm | ||
size.scm | ||
substitute.scm | ||
system.scm | ||
weather.scm |