lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] more slow code


From: Atte Kojo
Subject: Re: [lwip-devel] more slow code
Date: Tue, 4 Apr 2006 11:57:45 +0300
User-agent: KMail/1.9.1

On Tuesday 04 April 2006 11:42, Christiaan Simons wrote:
> I think the linear search in find_entry()
> over the ARP table is the culprit.
>
> I guess lot off subsequent (burst) IP packets can come from the same
> source,
> without much use for updating the table.
> So update_arp_entry() should return as quickly as possible for that case.

One solution that comes to my mind is to keep a one-entry cache in 
find_entry(). This should at least speed up the case when the stack is 
communicating with a small number of hosts and when receiving bursts of IP 
packets.

-- 
Atte Kojo
Software Development Engineer
Elekta Neuromag Oy
Street address: Elimäenkatu 22, Helsinki, Finland
Mailing address: P.O. Box 68, FIN-00511 HELSINKI, Finland
Tel: +358 9 756 24084 (direct), +358 9 756 2400 (operator)
Fax: +358 9 756 24011
E-mail: address@hidden
www.elekta.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]