Subject: | Lighter Pod::Usage by removing Pod::Select dependency |
I'm building a program that embeds Pod::Usage thanks to App::FatPacker.
Despites Pod::Usage being in core since 5.6 I need to embed Pod::Usage
because the dirty perl doesn't have it. This is the perl bundled with
msysgit (Git for Win32).
My problem is that Pod::Usage dependency are quite huge. However I see
some space for improvement:
- Pod::Usage uses Pod::Select because it calls its
_compile_section_spec() function
- Pod::Select loads Pod::Parser, but _compile_section_spec() doesn't need it
So it would be helpful if the _compile_section_spec() function was moved
to a separate (private?) module and then the dependency of Pod::Usage on
Pod::Select be removed.
Besides my personnal use case I think that could help improve Pod::Usage
speed as it would avoid to compile both Pod::Select and Pod::Parser
without even using them.
--
Olivier Mengué - http://perlresume.org/DOLMEN
PS: For more information about my program, see
https://github.com/dolmen/github-keygen