Speed up fetching package replacements
This commit is contained in:
parent
7d9704192d
commit
9779ecf3cd
1 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue