Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Slow startup on raspberry pi

by LanX (Saint)
on Jan 17, 2015 at 14:13 UTC ( [id://1113598]=note: print w/replies, xml ) Need Help??


in reply to Slow startup on raspberry pi

> Some pre-compilation? I already tried with PAR pp but it did not help.

You seem to use Switch.pm which is a source filter ... I doubt this plays well with pre compilation or PAR.

Better avoid source filters altogether.

Cheers Rolf

PS: Je suis Charlie!

Replies are listed 'Best First'.
Re^2: Slow startup on raspberry pi
by vivat (Initiate) on Jan 17, 2015 at 17:25 UTC
    Yes, I could easily replace the switch statement by elsif's. But with PAR the start takes longer than the direct start of the script. Even the second run with temp modules from a ramdisk. So PAR is no option anyway.
      So it doesn't look like IO matters much.

      But better get rid of the source filter.

      If you really want factor 4 you'll have to try to reactivate one of the pre compile projects like perlcc or find another way to start an image of the executable.

      I've also looked for a suspend mode but that's not rpi's philosophy. It's supposed to he running constantly. Your requirement is not normal.

      Anyway as long a you don't profile your project we gonna be shooting in the dark.

      So sorry I'm out now.

      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://1113598]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 22:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found