[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] more slow code
From: |
Kieran Mansley |
Subject: |
Re: [lwip-devel] more slow code |
Date: |
Tue, 4 Apr 2006 10:37:18 +0100 |
User-agent: |
Mutt/1.5.11 |
On Tue, Apr 04, 2006 at 11:57:45AM +0300, Atte Kojo wrote:
> 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.
Agreed. That would be both simple to implement and catch many of the
cases that lwIP is likely to encounter.
Kieran