[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/06: grafts: Update the narinfo cache before building a derivation.
From: |
Ludovic Courtès |
Subject: |
06/06: grafts: Update the narinfo cache before building a derivation. |
Date: |
Mon, 14 Mar 2016 22:35:10 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 264fdedb408ba3620d1e361de6c77e7925025301
Author: Ludovic Courtès <address@hidden>
Date: Mon Mar 14 22:49:51 2016 +0100
grafts: Update the narinfo cache before building a derivation.
* guix/grafts.scm (references-oracle)[references*]: Add call to
'substitution-oracle'.
---
guix/grafts.scm | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/guix/grafts.scm b/guix/grafts.scm
index af46957..6bec999 100644
--- a/guix/grafts.scm
+++ b/guix/grafts.scm
@@ -189,6 +189,12 @@ available."
(guard (c ((nix-protocol-error? c)
;; As a last resort, build DRV and query the references of the
;; build result.
+
+ ;; Warm up the narinfo cache, otherwise each derivation build
+ ;; will result in one HTTP request to get one narinfo, which is
+ ;; much less efficient than fetching them all upfront.
+ (substitution-oracle store (list drv))
+
(and (build-derivations store (list drv))
(map (cut references store <>) items))))
(references/substitutes store items)))
- branch master updated (6e6a040 -> 264fded), Ludovic Courtès, 2016/03/14
- 03/06: substitute: Remove dead code., Ludovic Courtès, 2016/03/14
- 06/06: grafts: Update the narinfo cache before building a derivation.,
Ludovic Courtès <=
- 01/06: size: Disable grafts., Ludovic Courtès, 2016/03/14
- 04/06: http-client: Add #:keep-alive? parameter., Ludovic Courtès, 2016/03/14
- 05/06: substitute: Keep the initial connection alive., Ludovic Courtès, 2016/03/14
- 02/06: store: 'references/substitutes' caches its results., Ludovic Courtès, 2016/03/14