AmigaActive (1388/1525)

From:Neil Bothwick
Date:28 Sep 2000 at 17:38:00
Subject:Re: Egroup Ads Re: AmiBench News

Bill Eaves said,

> Hello Neil

>> There are two ways of doing this job. If you take each mail and read it
>> line by line, ARexx is very slow. Read in a batch of mails as a single
>> string and chop out the parts containing the ads and you'll find it many
>> times faster.

> Each mail is read as one single string and handled as such. A line by line
> approach would be very slow and not at all necessary.Reading in a whole
> batch sounds an interesting idea but then you may end up reading in data
> that you don't need to process, eg a whole bunch of emails that are not new
> nor from egroups.

You'd only read in new mail of course, no point it rereading the same
mails over and over. But it's still faster to do one large disk read and
parse that string than to do lots of 3K open/read/close/open/write/close
actions.

Neil



Neil Bothwick - New Media Editor, Amiga Active Magazine
Connected via Wirenet - http://www.wire.net.uk
The UK's first Amiga-only internet access provider
---
Confucius says "He who posts with broken addresses gets no replies......"

Quote carefully and read all ADMIN:README mails