[pmwiki-devel] Small optimisation

Omar Cornut omar at miracleworld.net
Sun Jan 11 06:19:28 CST 2015


Hello,

I was looking into making pmwiki faster for our website, looking for
low-hanged fruits.

In pmwiki.php function MarkupToHTML()

This line:
  $markrules = BuildMarkupRules();

Can be moved outside of the loop. It happens to be constant an unmodified
for the whole loop and building the rules is slow.
On our server with our rules and for a large listing it saved 2 seconds
(out of 6.. still too slow but better).

Regards,
O.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20150111/ad6f4ba5/attachment.html>


More information about the pmwiki-devel mailing list