lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] byte order, packing, optimizations


From: Kieran Mansley
Subject: Re: [lwip-devel] byte order, packing, optimizations
Date: Mon, 15 Feb 2010 10:01:20 +0000

On Sat, 2010-02-13 at 17:55 +0100, address@hidden wrote:
> Stéphane Lesage wrote:
> > Well, I recently documented that on the wiki, but there is still no
> > documentation for checksum/byte swapping in doc/sys_arch.txt.
> >    
> Yeah, that could be improved, but I'm an opponent of adding warnings 
> where we only give a hint to optimization: the code as it is works 
> perfectly well - on platforms where performance isn't the main goal, 
> there's no need to issue a warning! Also, not everyone has the 
> possibility to generate a LWIP_PLATFORM_BYTESWAP macro that is really 
> faster than the default C code we have.

We should be putting advice and hints on how to optimize the stack for
different goals in documentation, not using the pre-processor to provide
this information, so I'd rather not see informational warnings of this
kind unless they highlight a genuine error.

Kieran





reply via email to

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