Subject: | Delay loading Moose |
I would like to add MooseX::Declare to perl5i, a module which improves
as much of Perl as possible in a single line.
Trouble is, MooseX::Declare takes almost 700ms to load. I don't want to
wreck the startup time for all non-OO perl5i users. Would it be
possible for MooseX::Declare to delay loading Moose until runtime when
class is called, or perhaps at compile time delay loading until it sees
a class keyword in the code?