[Koha-bugs] [Bug 15333] Use Koha::Cache for caching all holidays
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Dec 9 09:53:44 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15333
--- Comment #2 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Whilst we're on performance, I'd be interested to see if there was any
discernible difference in using List::Utils any function over the loop found
around line 140 of Koha::Calendar?
Anyone fancy testing that..
use List::Utils qw/any/; #(It's in core perl in more recent releases anyways)
return (any { /$date/ } @$holidays);
They do exactly the same thing, only I think List::Utils functions does so in c
instead of perl so I 'think' is usually quicker ;)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list