[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-devel] UDP - transmission inefficiences
From: |
Bill Auerbach |
Subject: |
RE: [lwip-devel] UDP - transmission inefficiences |
Date: |
Thu, 14 Jan 2010 09:06:19 -0500 |
>> 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.
This is true, but highly unlikely in this case for this change.
>Anyway, Bill's patch should be an option which is turned off by default.
>If so, I think it's worth including it.
I hate to agree but do with a report that it's slower for one application,
as dubious as I am about that finding.
Bill
- Re: [lwip-devel] UDP - transmission inefficiences, bobbyb, 2010/01/09
- RE: [lwip-devel] UDP - transmission inefficiences, Bill Auerbach, 2010/01/11
- RE: [lwip-devel] UDP - transmission inefficiences, bobbyb, 2010/01/11
- Re: [lwip-devel] UDP - transmission inefficiences, address@hidden, 2010/01/11
- Re: [lwip-devel] UDP - transmission inefficiences, bobbyb, 2010/01/13
- RE: [lwip-devel] UDP - transmission inefficiences, Bill Auerbach, 2010/01/13
- Re: RE: [lwip-devel] UDP - transmission inefficiences, Simon Goldschmidt, 2010/01/14
- Re: RE: [lwip-devel] UDP - transmission inefficiences, Kieran Mansley, 2010/01/14
- Re: [lwip-devel] UDP - transmission inefficiences, Simon Goldschmidt, 2010/01/14
- Re: [lwip-devel] UDP - transmission inefficiences, Kieran Mansley, 2010/01/14
- RE: [lwip-devel] UDP - transmission inefficiences,
Bill Auerbach <=
- RE: RE: [lwip-devel] UDP - transmission inefficiences, Bill Auerbach, 2010/01/14