List Info

Thread: MarkupToHTML in function SaveAttributes slows down performance




MarkupToHTML in function SaveAttributes slows down performance
country flaguser name
United Kingdom
2007-12-27 06:15:04
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.
Could it be removed from pmwiki.php?


~Hans


_______________________________________________
pmwiki-devel mailing list
pmwiki-develpmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Re: MarkupToHTML in function SaveAttributes slows down performance
country flaguser name
United States
2007-12-27 11:22:19
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

_______________________________________________
pmwiki-devel mailing list
pmwiki-develpmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )