Stories
Slash Boxes
Comments
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by grink (8549) on 2009.06.05 10:40 (#68962) Journal

    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 } }

    • Usually people only load a config at startup once, so it's not typically a problem

      I am interested in startup times too, and we're using lots of little config files - hence this problem. I guess we're "special". :-)