summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-07-20 00:37:47 +0200
committerLudovic Courtès <ludo@gnu.org>2015-07-20 00:37:47 +0200
commit94080a7263c2e8c8b6f9250cc83e74a7ae142f06 (patch)
treeb9ff9ec749e8c97966fe923ee82f5ee0df1e4a1f /doc
parent7f23fb00882dd65b4cad51a9cf52d5f86b32fdb4 (diff)
downloadguix-94080a7263c2e8c8b6f9250cc83e74a7ae142f06.tar.gz
publish: Do not load archive content in memory.
Previously, before replying to a /nar/* request, 'guix publish' would first
build up the whole nar into memory (as a consequence of
<http://bugs.gnu.org/21093>), which obviously doesn't scale.

* guix/scripts/publish.scm (render-nar): Return STORE-PATH instead of a
  procedure that calls 'write-file'.
  (sans-content-length): New procedure.
  (http-write): For 'x-nix-archive', don't call '%http-write'.  Instead, call
  'write-file' right from here, using BODY as the file name.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions