mirror of
https://github.com/github/semantic.git
synced 2025-01-03 04:51:57 +03:00
Avoid a redundant O(n) traversal of each diff.
This commit is contained in:
parent
aaf3bb0632
commit
6ed7c37e5b
@ -35,7 +35,7 @@ diffBlobPairs :: (Monoid output, StringConv output ByteString, HasField fields C
|
||||
diffBlobPairs decorator renderer blobs = do
|
||||
diffs <- Async.mapConcurrently go blobs
|
||||
let diffs' = diffs >>= \ (blobs, diff) -> (,) blobs <$> toList diff
|
||||
renderConcurrently (pure . runRenderer renderer) (diffs' `using` parTraversable (parTuple2 r0 rdeepseq))
|
||||
renderConcurrently (pure . runRenderer renderer) diffs'
|
||||
where
|
||||
go blobPair = do
|
||||
diff <- diffBlobPair decorator blobPair
|
||||
|
Loading…
Reference in New Issue
Block a user