[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50755] [PATCH v3] import: Generate list of importers based on avail
From: |
pinoaffe |
Subject: |
[bug#50755] [PATCH v3] import: Generate list of importers based on available modules |
Date: |
Tue, 28 Sep 2021 16:39:16 +0200 |
User-agent: |
mu4e 1.4.15; emacs 27.2 |
Hi,
Maxime Devos writes:
> To only measure the time required for defiing 'importers', wrap
> delete-duplicates in a call to 'time' from (ice-9 time).
Running
(time (for-each (lambda (_)
(delete-duplicates (filter-map (lambda (module)
(match (module-name module)
(`(guix scripts import ,importer)
(symbol->string importer))
(#t #f)))
(all-modules (map (lambda (entry)
`(,entry . "guix/scripts/import"))
%load-path)))))
(iota 1000)))
in a guix repl on my system results in
clock utime stime cutime cstime gctime
0.96 1.67 0.07 0.00 0.00 1.19
If I'm interpreting that correctly that would amount to a couple of
thousands of a second per run
Kind regards,
pinoaffe