[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 03106) Re: ipv6_addr_cmp performance patch
- To: herbert@xxxxxxxxxxxxxxxxxxx
- Subject: (usagi-users 03106) Re: ipv6_addr_cmp performance patch
- From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx>
- Date: Tue, 09 Nov 2004 15:57:44 -0500 (EST)
- Cc: dwcraig@xxxxxxxxxxxx, usagi-users@xxxxxxxxxxxxxx, linux-net@xxxxxxxxxxxxxxx, yoshfuji@xxxxxxxxxxxxxx
- In-reply-to: <E1CRcet-0001Jc-00@gondolin.me.apana.org.au>
- Organization: USAGI Project
- References: <0320111483D8B84AAAB437215BBDA526D60C94@NAEX01.na.qualcomm.com> <E1CRcet-0001Jc-00@gondolin.me.apana.org.au>
- Reply-to: usagi-users@xxxxxxxxxxxxxx
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