1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

Go back to using the cached term sizes.

This commit is contained in:
Rob Rix 2016-05-30 13:52:23 -04:00
parent 88beca1557
commit e8f82b0845

View File

@ -83,7 +83,7 @@ diffFiles parser renderer sourceBlobs = do
let sources = source <$> sourceBlobs
terms <- sequence $ parser <$> sources
let replaceLeaves = breakDownLeavesByWord <$> sources
pure $! renderer (runBothWith (diffTerms diffCostWithAbsoluteDifferenceOfCachedDiffSizes) $ replaceLeaves <*> terms) sourceBlobs
pure $! renderer (runBothWith (diffTerms diffCostWithCachedTermSizes) $ replaceLeaves <*> terms) sourceBlobs
-- | The sum of the node count of the diffs patches.
diffCostWithCachedTermSizes :: Diff a Info -> Rational