Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Performance Question

by BUU (Prior)
on May 08, 2002 at 13:57 UTC ( [id://165034]=note: print w/replies, xml ) Need Help??


in reply to Re: Performance Question
in thread Performance Question

Would you really get a sizable performance increase by using c instead of perl to manipulate/print text? (honestly wondering)

Replies are listed 'Best First'.
Re: Re: Re: Performance Question
by Elian (Parson) on May 08, 2002 at 14:02 UTC
    Depends on how good a C programmer you are. If you're reasonably good, yes. Probably a factor of two to four if the transforms are simple. More, possibly, depending on the IO subsystem. (It doesn't matter if your C program could run 50 times faster than the perl one if you've already maxed out your IO channel going twice as fast. You'll just twiddle your thumbs more)

    On the other hand it may take 5-10 times as long to write and debug the program, and maintenance/debugging it'll be a major pain relative to perl.

Re: (3) Performance Question
by talexb (Chancellor) on May 08, 2002 at 14:13 UTC
    A valid question. My guess is yes, but that's based on tuning the custom C program based on what system it runs on. It also depends if this is a one-time job or a weekly/monthly thing, as my initial post said. For a one-time thing, definitely go Perl. For a weekly job, it's worth the investment to write a really well-tuned, optimized C program.

    --t. alex

    "Nyahhh (munch, munch) What's up, Doc?" --Bugs Bunny

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://165034]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-18 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found