diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-02-02 18:46:10 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-02-02 18:46:10 -0800 |
commit | a6c167125fb423b365940401b45e5a95791b2fcf (patch) | |
tree | 94b193e97b67573c70359bca185eacb43cfbb032 /src/Text/Pandoc/Highlighting.hs | |
parent | 92acb24486129912ca967260bd8bb00990bf7013 (diff) | |
download | pandoc-a6c167125fb423b365940401b45e5a95791b2fcf.tar.gz |
Optimized oneOfStringsCI.
The call to toLower in ciMatch was very expensive (and very often
used), because toLower from Data.Char calls a fully unicode
aware function. This optimization avoids the call to toLower
for the most common, ASCII cases. This dramatically reduces the
speed penalty that comes from enabling the `autolink_bare_uris`
extension. The penalty is still substantial (in one test, from 0.33s
to 0.44s), but nowhere near what it used to be.
Diffstat (limited to 'src/Text/Pandoc/Highlighting.hs')
0 files changed, 0 insertions, 0 deletions