Re: run cron every four weeks?

From: Barry Margolin (barry.margolin_at_level3.com)
Date: 08/12/03


Date: Mon, 11 Aug 2003 23:09:41 GMT

In article <KTUZa.2397$7z1.1660@newsread3.news.pas.earthlink.net>,
Alan Connor <alanconnor@earthlink.net> wrote:
>I repeat: Using perl in a situation like this would consume far more
>resources than a bash script, and is therefore not wise.

You're suffering from premature optimization.

Like he said, if it's only executing once a week, the difference in
resources is most likely negligible. When the performance impact isn't a
real problem, optimizing for ease of maintenance is often more wise.

BTW, have you actually done a comparison between the resource consumption
of the shell and perl? Some years ago I rewrote a program from C to Perl,
and with a little tweaking I was able to make the Perl version as fast as
the C version.

-- 
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


Relevant Pages

  • Re: run cron every four weeks?
    ... Using perl in a situation like this would consume far more ... >resources than a bash script, ... You're suffering from premature optimization. ...
    (comp.unix.questions)
  • Re: run cron every four weeks?
    ... Using perl in a situation like this would consume far more ... >resources than a bash script, ... You're suffering from premature optimization. ...
    (comp.unix.programmer)
  • Re: run cron every four weeks?
    ... Using perl in a situation like this would consume far more ... >resources than a bash script, ... You're suffering from premature optimization. ...
    (comp.sys.sun.admin)
  • Re: LWP get but only get the first 25% then exit/stop_retrieveing
    ... Perl Porters and module writers have built a wall between programmers ... > ftp practice like that is rude, I will continue to do it. ... is made to a server, typically an httpd transaction is effected. ... will dedicate a portion of its resources to serve that transaction. ...
    (perl.beginners)
  • Re: run cron every four weeks?
    ... >>resources than a bash script, and is therefore not wise. ... > You're suffering from premature optimization. ... Which is one reason I stay away from Perl. ...
    (comp.unix.questions)