[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/07: derivations: Reduce 'valid-path?' RPCs in 'derivation-prerequisit
From: |
guix-commits |
Subject: |
02/07: derivations: Reduce 'valid-path?' RPCs in 'derivation-prerequisites-to-build'. |
Date: |
Tue, 16 Apr 2019 11:33:15 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit e856177597b5a7f1b75bb4083ad1e0b50323c82e
Author: Ludovic Courtès <address@hidden>
Date: Tue Apr 16 11:42:18 2019 +0200
derivations: Reduce 'valid-path?' RPCs in
'derivation-prerequisites-to-build'.
On a profile with 280 packages, this reduces the number of
'valid-paths?' RPCs made by 'guix package -nu' from 6K to 500.
* guix/derivations.scm (derivation-prerequisites-to-build)[built?]:
Memoize 'valid-path?' calls.
---
guix/derivations.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/guix/derivations.scm b/guix/derivations.scm
index fb2fa17..7a5c3bc 100644
--- a/guix/derivations.scm
+++ b/guix/derivations.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès
<address@hidden>
+;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès
<address@hidden>
;;; Copyright © 2016, 2017 Mathieu Lirzin <address@hidden>
;;;
;;; This file is part of GNU Guix.
@@ -344,7 +344,8 @@ OUTPUTS of DRV and not already available in STORE,
recursively, and the list
of required store paths that can be substituted. SUBSTITUTABLE-INFO must be a
one-argument procedure similar to that returned by 'substitution-oracle'."
(define built?
- (cut valid-path? store <>))
+ (mlambda (item)
+ (valid-path? store item)))
(define input-built?
(compose (cut any built? <>) derivation-input-output-paths))
- branch master updated (b744862 -> b2c3640), guix-commits, 2019/04/16
- 02/07: derivations: Reduce 'valid-path?' RPCs in 'derivation-prerequisites-to-build'.,
guix-commits <=
- 03/07: store: Add "add-data-to-store-cache" profiling component., guix-commits, 2019/04/16
- 01/07: store: Memoize 'built-in-builders' call directly in <store-connection>., guix-commits, 2019/04/16
- 07/07: tests: Gracefully skip zlib test when zlib is missing., guix-commits, 2019/04/16
- 04/07: gnu: guile-charting: Install .go files in the right place., guix-commits, 2019/04/16
- 05/07: gnu: Add libomp., guix-commits, 2019/04/16
- 06/07: gnu: slurm: Configure with a "standard" syslogdir., guix-commits, 2019/04/16