|
|
|
|
|
by tshadwell
4411 days ago
|
|
Perhaps I am looking at this wrong, but I don't see why you would use a Markdown parser written in PHP if you're looking for speed. Case in point the parsedown system is fast because it has heavy use of regular expressions, which parse faster and run faster than the host language-- it already relies on a language other than PHP to essentially emulate parts of a well-written lexer. As debaserab2 says[1], if you are looking for speed, consider PHP extensions. In my opinion, writing a system like this is a misappropriation of PHP, which evolved from and works best as a hybrid templating/scripting language. It becomes a powerful development platform when its extensive library of C functions is used to do most heavy lifting. [1] https://news.ycombinator.com/item?id=7784219 |
|