diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-04-20 18:46:38 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-04-20 23:35:55 +0200 |
commit | 2dce88d5bbe7a65e101c0734d1c6db44ecc8c299 (patch) | |
tree | 50de27f0197a0984e4366bb54b0114839cdfa86f /THANKS | |
parent | 358b10b22b300e2d5c00e9f1413b778cdc4cb213 (diff) | |
download | guix-patches-2dce88d5bbe7a65e101c0734d1c6db44ecc8c299.tar guix-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 'THANKS')
0 files changed, 0 insertions, 0 deletions