Skip to Content.
Sympa Menu

devel - Re: [sympa-dev] Hardware requirements

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Sergiy Zhuk <address@concealed>
  • To: Olivier Salaun - CRU <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-dev] Hardware requirements
  • Date: Fri, 3 Oct 2003 01:48:20 -0700 (PDT)

hi

On Fri, 3 Oct 2003, Olivier Salaun - CRU wrote:

> In its main loop sympa.pl first checks all messages in spool to process
> the ones with higher priority. You could probably short-circuit this
> part of the code and process messages according to their arrival order
> instead. It starts with this :

OK, so instead of processing the snapshot, sympa re-reads the directory
after processing each and every message and sorts the queue by name twice
(first in opendir(), second in the loop), then finds a message with the
highest priority.
This is really ineffective in case you have lots of messages spooled with
sendmail adding more as we run the current queue.
Do you think it would make more sense to read the queue dir once, process
all messages first, then read the directory again ?
Current algorithm is not very effective and doesn't prevent sympa spending
too much time on a single message either.

thanks

--
rgds,
serge



Archive powered by MHonArc 2.6.19+.

Top of Page