Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^8: Any gotchas with CGI and Mouse running together? (start up explained)

by LanX (Bishop)
on Feb 28, 2015 at 14:53 UTC ( #1118174=note: print w/replies, xml ) Need Help??


in reply to Re^7: Any gotchas with CGI and Mouse running together?
in thread Any gotchas with CGI and Mouse running together?

Sounds like trolling ... :/

But let's take it positive, and try to make an insightful post worth linking to.

short

Your 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? :)

long

FWIW 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 :

  1. Compilation:

    require of Moose.pm at first use Moose;

  2. Exporting:

    calling Moose->import() for each use Moose;

  3. Application:

    calling exported Moose::subs() sugar like has in each class during their use Class;

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.

conclusion

If 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.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)

PS: Je suis Charlie!

) so what people actually mean is the resulting start up time of modules/classes build with Moose.

update

Of 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.

Replies are listed 'Best First'.
Re^9: Any gotchas with CGI and Mouse running together? (start up explained)
by Anonymous Monk on Mar 01, 2015 at 06:58 UTC

    Sounds like trolling ... :/

    Really? Sad

    Simple yes or no question ... you seemed really really interested, and I know you like to test, so I was wondering if you were planning on doing it ... if i should bookmark this node or not

      Well I'm interested in many fields around language design. Getting involved in too many projects its the death of all ambitions.

      (And I'm having concerning M** far more doubts and questions than answers)

      So, are you going to bench it?

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)

      PS: Je suis Charlie!

        So, are you going to bench it?

        Probably not

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1118174]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-09-26 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (297 votes). Check out past polls.

    Notices?