optimisation

Avoid unnecessary conversion to/from String.
This commit is contained in:
Joey Hess 2021-04-20 13:13:45 -04:00
parent c30557594e
commit b2222e4639
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 5 additions and 3 deletions

View file

@ -411,7 +411,7 @@ files = do
-- so use getJournalledFilesStale which should be much smaller most
-- of the time. branchFiles will stream as the list is consumed.
l <- (++)
<$> (map toRawFilePath <$> getJournalledFilesStale)
<$> getJournalledFilesStale
<*> pure bfs
return (l, cleanup)