Le 2007-08-28 à 13:43, John Fraser a écrit :

That's great news!  I think your numbers show that my claim that
Markdown.pl can be made "five to ten times faster with a few hours of
work" is actually pretty conservative.

Perhaps.

I'm not quite sure what's the culprit in Markdown.pl, although I suspect the overuse of the HTML block parser to hash Markdown- generated markup is part of it. That's one thing I've removed in the many architectural changes PHP Markdown passed through since version 1.0.1d.

Today I only fixed an issue in some part of *my* code, a part that doesn't even exist in Markdown.pl. I'm pretty confident that porting my architectural changes to Markdown.pl would improve it a lot, both in terms of speed and for squashing bugs. If anyone wants to do it, you can ask me for directions.


For comparison, I'd be interested to hear how long Markdown.pl 1.0.2b8
takes to process the fixed TextMate manual on your computer.

Sure. 49 seconds (for the 176 Kb document). Oh, and parsing the double-sized document (352 Kb) took 289 seconds (almost 5 minutes!). That's clearly not linear.



Michel Fortin
[EMAIL PROTECTED]
http://www.michelf.com/


_______________________________________________
Markdown-Discuss mailing list
[email protected]
http://six.pairlist.net/mailman/listinfo/markdown-discuss

Reply via email to