NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Module::Pluggable (Score:1)
Hah, that's interesting
Yes, AFAIK Module::Pluggable doesn't cache its results, to each time you call ->plugins it will rescan the hierarchy
Usually people only load a config at startup once, so it's not typically a problem
In Config::Any:
{ my (@plugins, $loaded); sub plugins { return @plugins if $loaded; $loaded = 1; return @plugins = $finder->plugins } }
Re:Module::Pluggable (Score:2)
I am interested in startup times too, and we're using lots of little config files - hence this problem. I guess we're "special". :-)
Reply to This
Parent