[Koha-bugs] [Bug 13758] KOHAVERSION should be statically set
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Mar 17 16:27:04 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13758
Jonathan Druart <jonathan.druart at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |In Discussion
--- Comment #2 from Jonathan Druart <jonathan.druart at biblibre.com> ---
I did not find any time saving using a new package to store the version.
# Without the patch
$ more t.pl
use Modern::Perl;
use C4::Context;
say C4::Context->KOHAVERSION;
$ time perl t.pl => 0.150s
# With the patch
$ more t.pl
use Modern::Perl;
use C4::Context;
use Koha;
say Koha::version;
$ time perl t.pl => 0.150s
To be fair I kept the use of C4::Context, if I remove it I get, of course,
~0.024s
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list