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

(usagi-users 03106) Re: ipv6_addr_cmp performance patch



In article <E1CRcet-0001Jc-00@xxxxxxxxxxxxxxxxxxxxxxxx> (at Wed, 10 Nov 2004 07:32:07 +1100), Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> says:

> Craig, Dave <dwcraig@xxxxxxxxxxxx> wrote:
> > 
> > Please consider the attached patch for incorporation into the next Linux
> > 2.6 release.  I found that using the __builtin_memcmp GCC intrinsic for
> > doing IPv6 address comparison a lot more slow than integer comparison.
> 
> What if the addresses are not aligned on a platform where it matters?

It shouldn't if ipv6_addr_cmp() is used for in6_addr{}.

--yoshfuji