Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Re: Performance Question

by BUU (Prior)
on May 08, 2002 at 13:57 UTC ( #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 (Canon) 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?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2020-03-31 03:08 GMT
Find Nodes?
    Voting Booth?
    To "Disagree to disagree" means to:

    Results (179 votes). Check out past polls.