evilstreak / markdown-js

A Markdown parser for javascript
7.69k stars 863 forks source link

Make linebreak normalization a bit more efficient. #157

Closed cannona closed 10 years ago

evilstreak commented 10 years ago

Do you have any benchmarks for the efficiency of this?

evilstreak commented 10 years ago

I was interested so I threw a quick benchmark together: http://jsfiddle.net/k642V/

Your change is about three times faster.