I have a PERL program that reads from a large text file and does some
processing on every line it reads. If this same program is written in
C or any other compiled language, would I get significant performance
improvement?
It's certainly possible that the perl program can be faster than the C
one. It might be _much_ faster.
OTOH it might be slower, although that might be 'a small amount slower'.
It may depend on a lot of things, including how good the C programmer is
and how good the perl programmer is.
In this scenario I guess that program will run for a relative 'long'
time, which means the startup time for perl and the compilation phase
might be relatively small, which leaves us with the runtime speed being
the deciding factor. Perl is written in C, and once a perl program has
been compiled it's full steam ahead.
I am primarily asking about whether writing a program in Perl can
cause significant performance impact.
In general, none at all, but the parameters of what is acceptable all
depend on your particular needs and circumstances (which you haven't
mentioned so I'm giving the general answer).
P