in reply to Re: Precompiled perl...
in thread Precompiled perl...

Yeah, but what about pre-compiled libraries,

What I would like to achieve is to have all /usr/share/perl5 pre-compiled, this could be very nifty..

Replies are listed 'Best First'.
Re^3: Precompiled perl...
by diotalevi (Canon) on Oct 27, 2004 at 14:41 UTC
    Not really. Other people have reported that it tends to be slightly more expensive to load a perl program from compiled form than from original source code. I wouldn't spend too much time worrying about this problem. Things like mod_perl exist so that the compilation process happens once and then the in-memory program is just re-used. That avoids the cost of *both* scenarios.

      I would expect that, because it looks like in current form this byte-loader thing is sitting on top of perl, so it's not really bypassing anything.

      Also, you seem to be using perl only for web-serving, and quite often I use it stand-alone, and there it would be nice to have fast-loading apps.

      And although precompiling apps might have negligible effect on performance ( very rarely I write >10k LOC apps ), precompiling libs would be huge.

      And probably it would require much less resources from the host, thus enabling perl-written apps on embeded platforms.