On Thu May 16 05:09:19 2013, DAVECROSS wrote:
Show quoted text> Is the "Moose tax" really that much of a problem?
The problem is in scripts that need the speed, even using Number::Fraction once, increases the loading time.
Running prove -Q -l t/ with a patched Number/Fraction.pm (I also included MooX::Types::MooseLike for the Int type):
$ time prove -Q -l t/
All tests successful.
Files=14, Tests=161, 1 wallclock secs ( 0.11 usr 0.11 sys + 0.81 cusr 0.22 csys = 1.25 CPU)
Result: PASS
0m1.27s real 0m1.00s user 0m0.34s system
and with the original:
$ time prove -Q -l t/
All tests successful.
Files=14, Tests=161, 5 wallclock secs ( 0.06 usr 0.24 sys + 3.69 cusr 0.45 csys = 4.44 CPU)
Result: PASS
0m4.48s real 0m3.83s user 0m0.70s system
Patch to Fraction.pm attached.
Message body not shown because it is not plain text.