Ludovic Courtès fe5de925aa
deduplicate: Avoid traversing directories twice.
Until now, we'd call (nar-sha256 file) unconditionally.  Thus, if FILE
was a directory, we would traverse it for no reason, and then call
'deduplicate' on FILE, which would again traverse it.

This change also removes redundant (mkdir-p store) calls from the loop,
and avoids 'lstat' calls by using 'scandir*'.

* guix/store/deduplication.scm (deduplicate): Add named loop.  Move
'mkdir-p' outside the loop.  Use 'scandir*' instead of 'scandir'.  Do
not call 'nar-sha256' when FILE has type 'directory.
2020-06-22 15:42:55 +02:00
..
2020-06-13 01:19:38 +02:00
2017-07-21 17:03:24 +02:00
2019-12-15 00:34:05 +01:00
2019-05-06 23:21:33 +02:00
2020-04-17 23:36:47 +02:00
2020-05-11 23:30:55 +02:00
2017-11-08 22:31:58 +01:00
2019-09-04 13:02:27 +02:00
2018-06-01 15:21:28 +02:00
2019-03-13 23:12:43 +01:00
2020-06-18 14:48:17 +02:00
2018-09-04 17:25:11 +02:00
2020-06-15 23:31:56 +05:30
2020-05-22 01:30:10 +02:00