Re: A question of speed



On Fri, 30 Jun 2006, John Bokma wrote:

"Robert Hicks" <sigzero@xxxxxxxxx> wrote:

I have some co-workers that are writing an email parser (not sure
of the specifics) that is going to process around 5000 emails a
day. I suggested that they go a pure Perl route but they are leary
about Perl being "fast" enough to parse that many emails.

SpamAssassin is written in Pure Perl AFAIK, and 5,000 emails sound
like peanuts to me.

Sounds right to me. On our departmental mail server, it's the
highest-cost of the processes which run on incoming mail, and we try
to reject as much rubbish as we can at an earlier stage so as not to
put unnecessary load on the system; but a few thousand mails per day
would hardly bring it into a sweat.

However, it might be worth keeping in mind that SA typically runs as a
continuously running daemon, to which the individual mails are fed.

My hunch is that the simple-minded approach of firing-up a separate
instance of the script each time that a mail arrives would incur
considerable overhead.

h t h
.



Relevant Pages

  • Re: A question of speed
    ... about Perl being "fast" enough to parse that many emails. ... SpamAssassin is written in Pure Perl AFAIK, and 5,000 emails sound ... On our departmental mail server, ... For quite some time I just did that, I downloaded with a small POP script ...
    (comp.lang.perl.misc)
  • Great Seller" Andy( Charlotte Pinball)
    ... Thought it would be appropriate to use this forum to thank Andy from ... Charlotte pinball. ... He answered every one of my 45 emails with specifics and backed it up ...
    (rec.games.pinball)
  • Re: A question of speed
    ... the specifics) that is going to process around 5000 emails a day. ... Perl generally works fine on a tiny scale such as you describe. ...
    (comp.lang.perl.misc)
  • Re: A question of speed
    ... the specifics) that is going to process around 5000 emails a day. ... suggested that they go a pure Perl route but they are leary about Perl ...
    (comp.lang.perl.misc)
  • Re: A question of speed
    ... the specifics) that is going to process around 5000 emails a day. ... suggested that they go a pure Perl route but they are leary about Perl ... utterly obscene, ...
    (comp.lang.perl.misc)