aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Shared.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-11-28 20:19:32 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-11-28 20:19:32 -0800
commit3ffd7246173b8bdc0d25167355f55e3193aaa989 (patch)
tree5e4e071fc0ab13a99a69e95a475ca05e4b3fb23a /src/Text/Pandoc/Shared.hs
parente9cfbd5adc7a2f19be24904b6fb4d200ddbaa9ce (diff)
downloadpandoc-3ffd7246173b8bdc0d25167355f55e3193aaa989.tar.gz
Markdown parser performance improvement.
Do a quick lookahead to make sure what follows looks like a setext header before parsing any Inlines. This gives a 15% performance boost in one benchmark. Many thanks to knieriem for finding the problem (in peg-markdown): https://github.com/jgm/peg-markdown/issues/issue/3
Diffstat (limited to 'src/Text/Pandoc/Shared.hs')
0 files changed, 0 insertions, 0 deletions