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

--- Comment #16 from David Cook <[email protected]> ---
I like the concept.

A few questions:

1) Why does get_enabled_plugins return the array rather than an array
reference? (I suppose it might not matter much since the array will just be a
list of references itself, but it just seems less efficient.)

2) Each Koha::Plugins->call() loops through the plugin list checking the
methods available. If there is a large plugin list, this will scale linearly
and be progressively slower. 

Since we're already looping through the plugins in get_enabled_plugins, it
could be a good idea to do that method check at the same time and build a hash
map of methods to plugins. (The downside is that you'd have to pre-check all
methods rather than lazily check just the methods you're demanding at method
call time, but that expense would be 1 time rather than N times.)

I think that would maek sense since what we're really trying to do here is
"get_enabled_plugins_with_method", right?

-- 
You are receiving this mail because:
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