Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Slow startup on raspberry pi

by wollmers (Scribe)
on Jan 17, 2015 at 13:44 UTC ( [id://1113596]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Slow startup on raspberry pi
in thread Slow startup on raspberry pi

Sorry, expressed myself misleading. One problem is the slow I/O, where the Raspberry spent 5s of 8s in Mojo::Loader, compared with 194ms of 800ms on a MacAir.

The other problem is the hughe (bloated?) code which affects the runtime on both systems, but a human does not recognize the slowness on the fast system. On fast systems this large amount of CPU-cycles needed for class-factories or other INIT things does not matter, even if a restart of a webapp with 600 modules needs a few seconds.

Simple Perl like my $x = shift; is typically 17x slower on the Raspy, some other things have lower factors.

Replies are listed 'Best First'.
Re^4: Slow startup on raspberry pi
by LanX (Saint) on Jan 17, 2015 at 14:32 UTC
    OK thanks I was just wondering, if I missed a detail. :)

    And yes many are not aware that each string eval is restarting the compiler.

    Mojo has the reputation of being lightweight, but 160 small evals instead of one big one will make a difference.

    Of course Web frameworks are not supposed to be restarted very often...

    Cheers Rolf

    PS: Je suis Charlie!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1113596]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-28 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found