4 ms·
I'm curious why you'd write something like this in Javascript if you're aiming for performance. There's nothing wrong with using Javascript for a Markdown pars
by charliesome 15y ago
I'm curious why you'd write something like this in Javascript if you're aiming for performance.
There's nothing wrong with using Javascript for a Markdown parser but if it's supposed to be 'built for speed', you'd be better off using a lower level language.
- pavlov 15y agoThe benchmark posted in the project's readme shows that it's nearly as fast as Discount, which is a Markdown parser written in plain C. You underestimate modern JS engines.
- ufo 15y agoIts not "built for speed". Its build for speed and for the browser.
- thetrendycyborg 15y agoand for node. And it's almost as fast as a C implementation. JS isn't terrible, you know. People just never learn it because it's confusing. It's more similar to lisp than to C, except for the syntax. And built for speed doesn't mean "the fastest." It just means within this implementation the goal was speed.