The fastest way to run perl programs is to not make them into an .exe first. You might also look at B::C. I believe the .c files and the .exes output from them will be a lot faster than PAR binaries, but they may not work as well.

Basically, the problem is that perl just wasn't designed to be packed up like this. It can be made to work, but you have to suffer through unpacking an entire perl distribution to your tempfiles dir. And even when it's warm (as you say), you still have a 15meg binary to go through looking for the 1k of perl code to execute.

I happen to use and enjoy PAR in production environments, but I have come to accept certain performance penalties. The only real advantage is not having to install perl or the related packages. Which can be an enormous advantage in certain specialized settings.

UPDATE: I overstruck B::C because when it does work it's a fluke. It's a disaster and diotalevi is right to object. I didn't realize at the time that it wasn't even being maintained anymore. Curiously, I just read somewhere it might get resurrected in 5.10?

-Paul


In reply to Re: Minimizing PAR performance hit by jettero
in thread Minimizing PAR performance hit by gaal

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.