lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] ip6_addr_copy() ?


From: Bill Auerbach
Subject: Re: [lwip-devel] ip6_addr_copy() ?
Date: Mon, 13 Jun 2011 12:21:52 -0400

>> On some platforms much better performance can be gained using a macro
>> - a byte inline copy could be the best way.
>
>but I'll bet on others the straight assignment would perform better than
>a byte-by-byte copy.

Of course.  Isn't that why it's a macro and then isn't memcpy the best way
to guarantee a successful port?  If someone needs the speed, this is one of
the first places to optimize.  It's why I brought up the idea of macros
solely for IP and MAC address copies (as they were known to be 4 and 6 bytes
and better inlined manually on some platforms).  Naturally, I'm all for
changing defaults to improve overall performance. :-)

Bill




reply via email to

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