aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-04-20 18:46:38 +0200
committerLudovic Courtès <ludo@gnu.org>2017-04-20 23:35:55 +0200
commit2dce88d5bbe7a65e101c0734d1c6db44ecc8c299 (patch)
tree50de27f0197a0984e4366bb54b0114839cdfa86f /gnu
parent358b10b22b300e2d5c00e9f1413b778cdc4cb213 (diff)
downloadpatches-2dce88d5bbe7a65e101c0734d1c6db44ecc8c299.tar
patches-2dce88d5bbe7a65e101c0734d1c6db44ecc8c299.tar.gz
derivations: Avoid string-to-bytevector conversions.
On Guile 2.2.1, this yields a 5% speedup on: guix build libreoffice xmonad certbot -n --no-substitutes --no-build-hook * guix/derivations.scm (derivation->string): Rename to... (derivation->bytevector): ... this. Use 'open-bytevector-output-port' instead of 'call-with-output-string'. (derivation-hash): Remove string-to-bytevector conversion before 'sha256' call. (build-expression->derivation): Use 'add-data-to-store' and an bytevector port instead of a string port for the expression.
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions