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 App::Command::podpreview is loaded
(and its dependencies too) even when just "dzil authordeps" is run.
To avoid this (and so improve DZ startup), it would be better to load
dependencies (App::PodPreview and its dependencies, File::Temp, Carp)
only on usage in execute().
--
Olivier Mengué - http://perlresume.org/DOLMEN