perl execution speed

S

surfunbear

We have a wrapper language for C someone wrote which basicaly
reads files and operates on the fields. It formats the fields, adding
commas, removing spaces,checking for valid values and many similar
types of operations.
I am wondering if perl would run nearly as fast as such a thing, and
suspect it would. If the kind of processing you are doing could be done
in a 100 lines or so of perl code and the overall issue is how fast the
I/O is and moving one field to another, some pattern matching,
inserting data, I would expect perl would be fairly fast. Any comments
on that ?
 
J

J. Gleixner

We have a wrapper language for C someone wrote which basicaly
reads files and operates on the fields. It formats the fields, adding
commas, removing spaces,checking for valid values and many similar
types of operations.
I am wondering if perl would run nearly as fast as such a thing, and
suspect it would. If the kind of processing you are doing could be done
in a 100 lines or so of perl code and the overall issue is how fast the
I/O is and moving one field to another, some pattern matching,
inserting data, I would expect perl would be fairly fast. Any comments
on that ?

Well, why not try it and see? How would anyone be able to say yes or no
to "nearly as fast" or have any idea what your "wrapper language for C"
does or how well it does it? The only way you're going to answer it is
to benchmark it yourself, or hire someone. Also, the number of lines of
code has no relevance. It sounds like something perl would be able to
handle rather easily, however you're asking a question that only you can
answer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top