lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] UDP - transmission inefficiences


From: Simon Goldschmidt
Subject: Re: [lwip-devel] UDP - transmission inefficiences
Date: Thu, 14 Jan 2010 10:44:16 +0100

Kieran Mansley wrote:
> It does highlight the problem of trying to optimise lwIP in this way
> though, as improvements for one platform can unintentionally hurt
> another.
> 
> Ideally inlining would be left up to the compiler as it should be in a
> good position to know when it would help and when it would not, but not
> all compilers are sophisticated enough to do this well.

Maybe the name Bill gave its patch is a bit misleading: it does not inline a 
function call but calculates the checksum when IP header bytes are saved. No 
compiler can do this on its own :-)

Of course this is architecture dependent: architectures with a big register 
file will be able to do the calculation in registers - they will gain from the 
patch. While architectures with a small register file will need many small 
memory accesses (even if it's only the cache which is accessed), which will 
slow them down.

Anyway, Bill's patch should be an option which is turned off by default. If so, 
I think it's worth including it.

Simon
-- 
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02




reply via email to

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