1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Merge pull request #1399 from github/cmark-timings

Fix/Remove cmark timings
This commit is contained in:
Timothy Clem 2017-10-10 15:54:43 -07:00 committed by GitHub
commit 73d65795f9

View File

@ -224,7 +224,8 @@ runParser Options{..} blob@Blob{..} = go
liftIO (treeSitterParser tslanguage blob)
MarkdownParser ->
time "parse.cmark_parse" languageTag $
pure (cmarkParser blobSource)
let term = cmarkParser blobSource
in length term `seq` pure term
blobFields = ("path", blobPath) : languageTag
languageTag = maybe [] (pure . (,) ("language" :: String) . show) blobLanguage
errors :: (Syntax.Error :< fs, Apply Foldable fs, Apply Functor fs) => Term (Union fs) (Record Assignment.Location) -> [Error.Error String]