PAR, while a fine and handy tool, does not compile perl code (as I understand it). It simply bundles your script with the modules that it needs, along with a perl runtime, into an executable.

While that difference could be considered somewhat pedantic, consider the original poster's query. The observation was made that perl always reparses and recompiles on each invocation. PAR does not avoid that. In fact it adds another layer to it, since your code, and the included modules, are kept in a zip (-like?) format, and everything needs to be decompressed before parsing and compiling. I routinely use ActiveState's perlapp, and it does produce an executable that's often much faster than those produced by PAR, but I don't know if it's doing any parsing or compiling before emitting the exe.

Perhaps, the shift to Parrot with make this easier. I'm guessing it will be easier under parrot to snag byte code out of mid air and put it into a file, than it is under the current internals, but that remains to be seen.


In reply to Re^2: Compiled Perl by Anonymous Monk
in thread Compiled Perl by mkenney

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.