[Koha-bugs] [Bug 6193] Use memcached cache koha-conf.xml configuration variables

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 28 17:51:25 CET 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6193

--- Comment #16 from Paul Poulain <paul.poulain at biblibre.com> 2011-12-28 16:51:25 UTC ---
NYTPROF testing:
before running NYTPROF, you must export variable & load at least one page (to
fill memcache)
This is done by (on your shell):
export MEMCACHED_SERVERS=127.0.0.1:11211
export MEMCACHED_NAMESPACE=xxxx (xxxx= whatever you've set in your Apache)

Then, load mainpage on firefox at least once (to store the config file in
memcache)

then, you can run:
perl -d:NYTProf mainpage.pl

The results show you don't call read_config_file sub anymore. The timing go
from 230ms to 2.56ms on my test computer:

$self = $memcached->get('kohaconf');
# spent 2.56ms making 2 calls to Cache::Memcached::get, avg 1.28ms/call

(side question: why the hell does my last benchmarks show no gain ?)

BEFORE THE PATCH:
Profile of mainpage.pl for 2.12s (of 2.74s), executing 197477 statements and
59679 subroutine calls in 279 source files and 80 string evals.
AFTER THE PATCH:
Profile of mainpage.pl for 1.70s (of 2.14s), executing 137323 statements and
33090 subroutine calls in 273 source files and 79 string evals.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list