in reply to Embedded linux loading modules slowly.

How do you know that it's the module loading that is taking so long? Have you profiled your program on the embedded machine?

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

: () { :|:& };:

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re: Embedded linux loading modules slowly.
by SmokeyB (Scribe) on Dec 10, 2003 at 19:26 UTC
    That's definately a good idea, but I can't profile my program on the embedded machine because it doesn't have a profile module installed (Devel::Profile) and I am unable to install it on the box. (company policies, it's pretty much a pain in the a$$)

    Basically, the way I figured it out was by writing a few test scripts and adding features to it to see when the slow down occurs. From there I narrowed it down to when I try using a module.
      From there I narrowed it down to when I try using a module.

      Any module? Have you tried it with a very short and simple plain-Perl module? How about requiring a simple .pl file? Or is it only the more complicated modules (which might have locally-compiled binary components)? That kind of information might help further diagnose the problem...

        Actually, it is just any module. I made one with 3 simple functions that do some basic math calculations. It still took as long as a more complicated module.

        I then tested my .pl file by writing those functions in the script itself, without using the module, and the page came up more or less instantly.

        As you can see, I'm quite stumped.