in reply to Moose performance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Moose performance
by jmcnamara (Monsignor) on Nov 11, 2011 at 20:35 UTC | |
That isn't fair. You know what the issue is and it isn't right to try push it back on the OP to demonstrate the performance overhead of Moose. Every time someone is surprised by the overhead of Moose in small short lived programs we seem to reply in the following sequence (where each one is admitted more grudgingly): Perhaps it would be more honest if we replied in the reverse order.
--
| [reply] |
by Anonymous Monk on Nov 12, 2011 at 02:01 UTC | |
That isn't fair. You know what the issue is and it isn't right to try push it back on the OP to demonstrate the performance overhead of Moose. You're confusing one Anonymous Monk for someone who knows Moose is slow | [reply] |
|
Re^2: Moose performance
by Anonymous Monk on Nov 11, 2011 at 15:17 UTC | |
Not sure if the balance between performance and syntactic sugar is worth it.
Moose
No Moose
| [reply] [d/l] [select] |
by Corion (Patriarch) on Nov 11, 2011 at 15:53 UTC | |
See How Large Does Your Project Have To Be to Justify Using Moose? for more discussion. Also, Mouse and/or Any::Moose try to reduce the startup overhead that Moose brings with it, should you really decide to use Moose. | [reply] |
by Anonymous Monk on Nov 14, 2011 at 12:40 UTC | |
| [reply] |
by zwon (Abbot) on Nov 11, 2011 at 17:04 UTC | |
You're testing compile time. First scripts loads Moose and tons of its dependencies. Try to write some more realistic tests. Here's something to start:
Generally, if you're using Moose, code performance will decrease, but your performance and code quality will increase (though it depends of course). | [reply] [d/l] |
by jethro (Monsignor) on Nov 11, 2011 at 17:09 UTC | |
So basically you measured startup time. The same without startup time:
I eliminated the prints as these take a lot of time themselves. Put them in again and the difference will be 80% instead of 124%. Now this represents worst case. The methods are minimalist and the test subs just call the methods a few times. Print, read or write to files or use a database and the difference gets smaller and smaller | [reply] [d/l] |