Hi Buddy,
On Mon, 18 Mar 2013, Buddy Burden via RT wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=84020 >
>
>> As far as I know Moose is only needed for type checking. Would it be
>> possible to factor this out, so that Method::Signatures can be used
>> without it (and thus with fewer dependencies and a smaller foot-print)?
>
> Moose is never loaded by Method::Signatures. It will load _Mouse_, but
> only if you use types in your signatures. So Method::Signatures can
> easily be used without Moose, and even without Mouse (if you don't do any
> type-checking at all).
cool, then this point is already taken care of.
Show quoted text> According to my perlbloat script, MS adds about 18.2Mb (on my machine with
> my version of Perl). Of that, I'm guessing the bulk of it is from PPI
> (which perlbloat tells me weighs in at 13.8Mb). Using PPI is how we avoid
> many whitespace-dependent bugs, make sure that comments in the signatures
> don't cause weird bugs, and properly parse things like code blocks. I
> think it would be prohibitively expensive to try to do without it, but I'm
> open to ideas.
The only idea I have (and that would probably work in my context) is to have
an option to disable those checks. This would allow to have the checks
during development and testing, but have a smaller foot print on the
production system. But this might be difficult to implement and probably be
a bit against the spirit of the module ...
Show quoted text> In fact, if you have any specific ideas for reducing the memory
> footprint of MS, please let us know. We're always open to doing that. :-)
Integrate it into the Perl core ... ;-)
Thanks for your fast answer anyway.
Take care,
Fritz
--
Oetiker+Partner AG tel: +41 62 775 9903 (direct)
Fritz Zaucker +41 62 775 9900 (switch board)
Aarweg 15 +41 79 675 0630 (mobile)
CH-4600 Olten fax: +41 62 775 9905
Schweiz web: www.oetiker.ch