diff options
author | Ludovic Courtès <ludovic.courtes@inria.fr> | 2017-07-21 14:07:29 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-07-21 17:03:24 +0200 |
commit | 3d3e93b3f9cdf05f3dde07db45147f5919242fa2 (patch) | |
tree | 2b434ed8258cb43be92338087cae16284c47e6ee /bootstrap | |
parent | 0cf9f9b1e3cff70e837ca5b0759acd0f94f38732 (diff) | |
download | guix-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 'bootstrap')
0 files changed, 0 insertions, 0 deletions