why are these so slow to import?
Well, if you think about it when you use Pod::Usage it has to parse the source of your code, extract the POD and process the POD to present usage info - that will all take time. You can save this by postponing the load until/unless it is actually needed (most runs will never need it, of course). The other option is to use pod2usage out-of-band in advance and just copy the output of that into your code instead statically.
I find that Getopt::Std is much faster than Getopt::Long. Its reduced functionality may well be worth the trade-off for you.
🦛
In reply to Re: slow startup for some common modules? (autodie, Pod::Usage, Getopt::Long))
by hippo
in thread slow startup for some common modules? (autodie, Pod::Usage, Getopt::Long))
by almr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |