summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludovic.courtes@inria.fr>2017-07-21 14:07:29 +0200
committerLudovic Courtès <ludo@gnu.org>2017-07-21 17:03:24 +0200
commit3d3e93b3f9cdf05f3dde07db45147f5919242fa2 (patch)
tree2b434ed8258cb43be92338087cae16284c47e6ee /tests
parent0cf9f9b1e3cff70e837ca5b0759acd0f94f38732 (diff)
downloadguix-3d3e93b3f9cdf05f3dde07db45147f5919242fa2.tar.gz
substitute: Optimize hash-part-to-path conversion on non-200 responses.
Previously this operation was linear in the number of requests and
involved costly calls to 'string-contains'.

* guix/scripts/substitute.scm (fetch-narinfos)[hash-part->path]: New
procedure.
[handle-narinfo-response]: Use it for caching when CODE is not 200.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions