[pmwiki-users] Re: PHP loading faster?

Patrick R. Michaud pmichaud at pobox.com
Thu Dec 15 07:37:10 CST 2005


On Thu, Dec 15, 2005 at 11:29:37AM +0200, blues wrote:
> On Wed, 14 Dec 2005 22:48:11 +0200, Patrick R. Michaud  
> <pmichaud at pobox.com> wrote:
> >Also, does the page have lots of "\\" markups at the ends of lines?
> >That *really* slows down processing a lot for some reason.
> 
> really? why this?
> is [[<<]] any better?

Yes, [[<<]] is much better.  The difference between the two is that
[[<<]] simply inserts a <br clear='all' /> element, while the "\\"
markup inserts a <br /> element *and* joins the next line to the
previous one, making one much longer line.

I've seen sites where people exclusively used '\\' and '\\\' 
exclusively to create linebreaks and paragraph breaks, and the
result is that instead of having lots of small lines to process,
the markup rules have a few very long lines to process.  Longer
lines can exponentially increase the amount of work of some of the
pattern matches.  The sites that used a lot of '\\' would render
more slowly by one or two orders of magnitude.

There's nothing wrong with using '\\', as long as it isn't being
used on nearly every markup line in the page.  And in your case
I think we've narrowed it down to a recipe causing things to be
much slower (although I'm curious to know which one it might be
so that we can speed it up).

Pm




More information about the pmwiki-users mailing list