https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37657

--- Comment #1 from David Cook <[email protected]> ---
If I use Koha::Database->dbh instead of C4::Context->dbh, I can get
"misc/admin/koha-preferences get SearchEngine" down from 0.914s to 0.328s.

That's pretty impressive.

However, if I remove the other Koha::/C4:: module loads from the top of the
script, I can reduce it even further down to 0.087s.

That's the kind of speed I'm really looking for here.

--

I reckon lazy-loading the modules needed for each command isn't a bad way to
go. Even if the community doesn't accept it, I'm going to do it locally anyway,
as the speed improvement is just too good not to do. 

But perhaps I'll use this bug report to do that first speed improvement, and
then open a separate one to do the lazy-loading to get the final speed
improvement, since that one will be more controversial.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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/

Reply via email to