Skip to content
Snippets Groups Projects
Commit 333c376c authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

graft: Graft files in parallel.

* guix/build/graft.scm (rewrite-directory): Use 'n-par-for-each' instead
  of 'for-each'.
parent 9c88f655
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ (define-module (guix build graft)
#:use-module (rnrs bytevectors)
#:use-module (rnrs io ports)
#:use-module (ice-9 match)
#:use-module (ice-9 threads)
#:export (replace-store-references
rewrite-directory))
......@@ -117,6 +118,7 @@ (define (rewrite-leaf file)
(else
(error "unsupported file type" stat)))))
(for-each rewrite-leaf (find-files directory)))
(n-par-for-each (parallel-job-count)
rewrite-leaf (find-files directory)))
;;; graft.scm ends here
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment