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!