[pmwiki-devel] MarkupToHTML in function SaveAttributes slows down performance

Patrick R. Michaud pmichaud at pobox.com
Thu Dec 27 11:22:19 CST 2007


On Thu, Dec 27, 2007 at 12:15:04PM +0000, Hans wrote:
> 
> I have been running some performance tests using StopWatch()
> with Fox processing multiple files. I noticed that the line in the
> pmwiki.php SaveAttributes function
> 
>     $html = MarkupToHTML($pagename,$text);
> 
> is causing the overall process time to more than double.
> For testing I used Fox to rewrite and save multiple pages in a
> different group.
> With it Fox processed the 95 pages of PmWiki group in 27 sec,
> by commenting out the code line this was reduced to 12.6 sec.
> 
> Question: why is this call to MarkupToHTML in function SaveAttributes?
> It seems to do nothing, but I may be wrong.

It's very important -- it's used to determine the values for the 
targets=, title=, description=, and keywords= attributes in the
page file(s).

Pm



More information about the pmwiki-devel mailing list