Commit 1ba03589c0962849a8a45926f53263867404ef6a

Martin Mitas 2016-11-07T20:50:11

md_collect_marks: Optimize the function. Use character map for a fast path and minimize count of branches for specially handled characters. When profiling md2html on a larger documents with output redirected to /dev/null to mitigate I/O, this function was quite a bottleneck. It consummed about 33% of CPU cycles on a longer document input, with this patch applied it drops down to 12%.