Unless you have a specific script that uses a lot of CPU cycles, then I doubt you will see substantial benefit. C is the obvious choice for image manipulation and parsing structured data like XML. ...But since that is the case you will notice that most of these functions can be accomplished using modules like Image::Magick and XML::Parser which have all of their processing intensive parts already in C (so you get the benefit of both C and Perl!).
You could also use the Inline module if you really wanted. It allows you to enbed C or C++ code right into your Perl script. This is good if you have one or two routines that need to be really fast. As far as porting your current code to C, in my opinion it would only be a waste of time. If you want, challenge him to a duel. Have him recode one of the Perl scripts in C, and then do some testing. Then compare the time to write the C code with the speed benefit... most likely it would be far cheaper just to add another processor to your web box. Rob -----Original Message----- From: Agustin Rivera [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: C vs. Perl Ok, the local Linux guru has proclaimed that C would be faster than Perl. I know C is very effecient so I don't really doubt him, but my question is.... would it make that much of a difference? I certainly wouldn't mind learning C, the only question is would be worth the time to port our Perl scripts over to it? Right now our setup is Apache w/modperl, and I'm getting quite good at taking advantage of modperl's benefits. Hope everyone had a safe New Year, Agustin Rivera Webmaster, Pollstar.com http://www.pollstar.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]