Subject: | Suggestion: reduce startup overhead |
Just a suggestion: you might want to consider switching from Moose to Moo (or even Mo?) to reduce startup overhead. Also, delay loading some modules, for example, no need to 'use Pod::Usage' first at the start of module, unless you want to display help.
Just loading your module takes almost a quarter of a second. This is annoying at best and unacceptable in some cases for command-line program that must start and return quickly.
$ time perl -MGetopt::Alt -E1
real 0m0.221s
user 0m0.204s
sys 0m0.012s
Compare with Getopt::Long (starts 10-15x faster):
$ time perl -MGetopt::Long -E1
real 0m0.014s
user 0m0.004s
sys 0m0.008s
Regards,
Steven