in reply to suggested module/tools to automatically "tighten" my perl
Is lazy loading an option?
I.E. can you replace global use and require statements with a lazy loader such as autouse or Class::Autouse.
Alternatively, can you require modules just in time?
This could be of benefit:# conditional use of require if ($heavy_lifting_needed) { require BigModule; ## BigModule->import(); # maybe BigModule->do_stuff(); }
- if your code is organised into discrete modules
- only some of them are being used in any particular hit
- you're not importing symbols into your namespace
In Section
Seekers of Perl Wisdom