On Fri, Jan 02, 2004 at 11:12:48PM -0500, Guy Middleton wrote:
> In this configuration, time to send outgoing mail is:
> 
> real    0m2.71s
> user    0m1.03s
> sys     0m0.29s
> 
> 
> However, I see that [EMAIL PROTECTED] is really a domain match, so I removed the "*@"
> from those 19 patterns to leave bare domains.  With that changes, the time
> increases dramatically:
> 
> real    0m9.46s
> user    0m4.68s
> sys     0m0.32s


I discovered why this is happening.

The recipient here happened to be near the
start of the whitelist, matched by a [EMAIL PROTECTED] pattern.  The match logic tries
to match the full address against every line in the file, and only attempts
domain matches if the full-address match fails.  So after changing the file,
it falls through on the first try, and takes much longer.


Just for fun, I then converted my whitelist to an -autodbm, with time as follows:

real    0m3.35s
user    0m0.87s
sys     0m0.34s
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to