P is for Practical | |
PerlMonks |
Re^8: Any gotchas with CGI and Mouse running together? (start up explained)by LanX (Saint) |
on Feb 28, 2015 at 14:53 UTC ( [id://1118174]=note: print w/replies, xml ) | Need Help?? |
Sounds like trolling ... :/ But let's take it positive, and try to make an insightful post worth linking to.
shortYour Mother already convinced me that startup time wouldn't improve much and I'm not a M* user anyway. So why don't you bench it? :)
longFWIW some theory for those interested: The famous "startup time using Moose" actually consists of at least 3 phases, cause in reality Moose is used in every single class involved ¹:
Naturally pre-compilation (like "perlcc Moose") can only effect phase 1, which is a one-time advantage. But YM already pointed out that startup time grows significantly with the number of classes.
conclusionIf you or anyone else is interested in benchmarking it, I'd suggest taking Schwern's test scenario and extend it appropriately to identify these phases.
¹) so what people actually mean is the resulting start up time of modules/classes build with Moose.
updateOf course one could try to benchmark the application of classes created with Moose, i.e. mainly creating objects and calling methods. But that's not startup time anymore, and hearsay is that runtime is fast enough.
In Section
Seekers of Perl Wisdom
|
|