On Wed, 7 Oct 1998, Jim Knoble wrote:
> I'm a little late on this, having been gone for the weekend, but
> mightn't it be slightly more efficient to keep a hash table of IP's
> along with the count of connections to each IP? It might require
> slightly more time to add an IP to the hash table than to a linear
> list, but would significantly reduce the time spent searching for a
> count of connections to a specific IP.
I would guess that most people set smtp_accept_max to less than 100.
Searching a linear list of 100 is pretty fast. However, if it proves
unacceptable, some kind of hash is probably the best alternative, since
it could be done in a fixed amount of store.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.
--
*** Exim information can be found at
http://www.exim.org/ ***