in reply to Perl: friend or foe ?
Also of interest to me is whether the fact that its not precompiled could affect its performance, again with reference to other languages. Would it be better to compile the code first so that each time it is run it doesn't have to be interpreted each time.That's two separate questions. First, let me clearify something. Perl code is compiled before it's run. The Perl code itself is never "interpreted each time" as with, for instance, shell code. Perl code is compiled when you start the program, and then the resulting code is run.
As for whether it impacts performance, yes, in some ways. Both negatively, and positively. Let me list some cons first:
In Perl6, you probably will have the option to save the byte code after compilation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl: friend or foe ?
by MonkPaul (Friar) on Apr 25, 2005 at 20:04 UTC | |
by merlyn (Sage) on Apr 25, 2005 at 23:00 UTC | |
by softworkz (Monk) on Apr 26, 2005 at 19:40 UTC | |
by willyyam (Priest) on May 02, 2005 at 14:08 UTC | |
by Anonymous Monk on May 03, 2005 at 08:19 UTC | |
by MonkPaul (Friar) on May 05, 2005 at 13:52 UTC | |
by Willworker (Acolyte) on May 03, 2005 at 21:38 UTC |