[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/14: Speed up fetching package replacements
From: |
Christopher Baines |
Subject: |
08/14: Speed up fetching package replacements |
Date: |
Fri, 2 Feb 2024 10:58:39 -0500 (EST) |
cbaines pushed a commit to branch master
in repository data-service.
commit 9779ecf3cd3b10c9ed2bb94c0b459ddfc2d85467
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Wed Jan 31 12:30:51 2024 +0000
Speed up fetching package replacements
---
guix-data-service/jobs/load-new-guix-revision.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/guix-data-service/jobs/load-new-guix-revision.scm
b/guix-data-service/jobs/load-new-guix-revision.scm
index 9a36a95..7f1e981 100644
--- a/guix-data-service/jobs/load-new-guix-revision.scm
+++ b/guix-data-service/jobs/load-new-guix-revision.scm
@@ -655,7 +655,17 @@
(inferior-packages inf)))))
(replacements
(with-time-logging "getting inferior package replacements"
- (map inferior-package-replacement packages)))
+ (map
+ (lambda (inf-pkg has-replacement?)
+ (and has-replacement?
+ (inferior-package-replacement inf-pkg)))
+ packages
+ (inferior-eval
+ `(map (lambda (id)
+ (->bool (package-replacement
+ (hash-ref %package-table id))))
+ (list ,@(map inferior-package-id packages)))
+ inf))))
(pkg-to-replacement-hash-table
(let ((ht (make-hash-table)))
(for-each
- 02/14: Log the time to call inferior-packages-plus-replacements, (continued)
- 02/14: Log the time to call inferior-packages-plus-replacements, Christopher Baines, 2024/02/02
- 05/14: Make sure to keep roots for channel instance derivations, Christopher Baines, 2024/02/02
- 07/14: Add more logging in when computing channel instance derivations, Christopher Baines, 2024/02/02
- 09/14: Split up handling of package description data, Christopher Baines, 2024/02/02
- 10/14: Fix exception handling in call-with-temporary-thread, Christopher Baines, 2024/02/02
- 12/14: Speed up loading package metadata, Christopher Baines, 2024/02/02
- 14/14: Cleanup some with-time-logging, Christopher Baines, 2024/02/02
- 06/14: Add some time logging in to inferior-packages-plus-replacements, Christopher Baines, 2024/02/02
- 11/14: Ignore inferior-protocol-error when computing channel instances, Christopher Baines, 2024/02/02
- 13/14: Compute lint warnings in parallel, Christopher Baines, 2024/02/02
- 08/14: Speed up fetching package replacements,
Christopher Baines <=
- 03/14: Improve logging when computing a channel instance derivation fails, Christopher Baines, 2024/02/02