http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6193
--- Comment #16 from Paul Poulain <[email protected]> 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. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
