summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludovic.courtes@inria.fr>2017-06-19 21:47:22 +0200
committerLudovic Courtès <ludo@gnu.org>2017-06-19 23:23:14 +0200
commite037e9dbec1ab5a8cfaf65d73aa3afb2eeb98d71 (patch)
treea43b6f96a179c552dec82744ea1d579a2b9ffee5 /gnu
parentec450c3642c8dd0ce19bb603de564a1abed557a1 (diff)
downloadguix-e037e9dbec1ab5a8cfaf65d73aa3afb2eeb98d71.tar.gz
store: Buffer RPC writes.
For a command like:

  guix build python2-numpy -n

this reduces the number of 'write' syscalls from 9.5K to 2.0K.

* guix/store.scm (<nix-server>)[buffer, flush]: New fields.
(open-connection): Adjust accordingly.  Call 'buffering-output-port' to
compute the two new fields.
(write-buffered-output, buffering-output-port): New procedures.
(operation): Write to (nix-server-output-port server).  Call
'write-buffered-output'.
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions