diff options
author | Ludovic Courtès <ludovic.courtes@inria.fr> | 2017-06-19 21:47:22 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-06-19 23:23:14 +0200 |
commit | e037e9dbec1ab5a8cfaf65d73aa3afb2eeb98d71 (patch) | |
tree | a43b6f96a179c552dec82744ea1d579a2b9ffee5 /nix/libstore | |
parent | ec450c3642c8dd0ce19bb603de564a1abed557a1 (diff) | |
download | patches-e037e9dbec1ab5a8cfaf65d73aa3afb2eeb98d71.tar patches-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 'nix/libstore')
0 files changed, 0 insertions, 0 deletions