[dokuwiki] Re: Recent changes and new release
- From: Chris Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sun, 24 Sep 2006 12:25:17 +0100
Andreas Gohr wrote:
I like your ideas but would suggest to wait with this for the next
release.
No problem.
I like to put this first release candidate online at tuesday or
wednesday. So we should concentrate on removing bugs and irregularities
introduced through the new features (like the trimming issue).
Sounds good.
I now believe I've achieved all the worthwhile efficiency gains I can.
It would be handy if people who were concerned about DokuWiki
performance could make some observations before and after the upgrade to
see how successful the changes have been.
For those interested, the current release of DokuWiki can be made to
give timings by:
Turning the allowdebug config setting on and adding the following at the
start of inc/init.php (immediately after the top comment.
============ BEGIN =========
// start timing Dokuwiki execution
function delta_time($start=0) {
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec+(float)$sec)-((float)$start);
}
define('DOKU_START_TIME', delta_time());
=========== END ============
And adding the following lines in lib/tpl/<your template>/footer.html
just before the last </div> at the bottom of the page. If your template
doesn't use footer.html, the lines can be added in main.php before the
</body> at the bottom.
============ BEGIN =========
<?php
if ($conf['allowdebug']) {
echo '<!-- page made in '.round(delta_time(DOKU_START_TIME), 3).'
seconds -->';
}
?>
=========== END ============
The above code will be included in the new release, getting script
timings will just be a matter of turning allowdebug on.
Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- References:
- [dokuwiki] Recent changes
- From: Chris Smith
- [dokuwiki] Re: Recent changes and new release
- From: Andreas Gohr
Other related posts:
- » [dokuwiki] Re: Recent changes and new release
- » [dokuwiki] Re: Recent changes and new release
I like your ideas but would suggest to wait with this for the next
release.
wednesday. So we should concentrate on removing bugs and irregularities
introduced through the new features (like the trimming issue).
Chris -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist
- [dokuwiki] Recent changes
- From: Chris Smith
- [dokuwiki] Re: Recent changes and new release
- From: Andreas Gohr