[dokuwiki] Improvements on Popularity Plugin

  • From: Constantinos Xanthopoulos <xanthopoulos.c@xxxxxxxxx>
  • To: dokuwiki <dokuwiki@xxxxxxxxxxxxx>
  • Date: Wed, 10 Oct 2012 15:59:35 +0300

Hello all,

As splitbrain suggested at the last IRC meeting we should first check
which variable delays the generation of the metrics in the popularity
plugin.

We made a benchmarking version of helper.php [1] that creates a file
in /tmp/ directory listing the percentage of time needed to generate
every popularity parameter.

We ran that script in 3 dokuwiki instances where we got similar results:

1. Fresh installation [2]: search_cachedir + search_datadir +
search_mediadir = 57%
2. minsoc.com [3]:  search_cachedir + search_olddir + search_metadir +
search_datadir + search_indexdir + search_mediadir = 99.9%
3. Private installation [4]: search_cachedir + search_olddir +
search_metadir + search_datadir + search_indexdir + search_mediadir =
99.6%

Which of these stats we could remove in the newer version to make it run faster?

Regards,

[1]: 
https://github.com/ConX/dokuwiki/blob/bench/lib/plugins/popularity/helper.php
[2]: https://gist.github.com/285eec1d276ef09b0525
[3]: https://gist.github.com/ea7e9a56d711f539142b
[4]: https://gist.github.com/37f5cd332beab8bd473b


-- 
Constantinos Xanthopoulos
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: