Subject: | Load dependencies at runtime instead of compile time |
Currently Dist::Zilla has a flaw: all App::Command classes are loaded
during startup even if not used. So DZ::App::Command::cover is loaded
(and its dependencies too) even when just "dzil authordeps" (as an
example) is run.
To avoid this (and so improve DZ startup), it would be better to load
dependencies (File::Temp, Path::Class, File::chdir) only on usage in
execute().
--
Olivier Mengué - http://perlresume.org/DOLMEN