NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: memove performance of NetBSD
Hi,
Thor Lancelot Simon <tls%panix.com@localhost>:
> On Thu, Jan 28, 2010 at 11:56:09AM +0530, Channa wrote:
>>
>> Yes the performance improves when the memmove is done as below:
>>
>> memmove(dst, src+1, sizeof(src));
>> memmove(dst, src+2, sizeof(src));
>> memmove(dst, src+3, sizeof(src));
>
> That's a pretty weird special case, since the start addresses overlap.
> What if you use more realistic start addresses?
>
[..]
I wanted to verify for unaligned address, using malloc() i got the
memory for the src and dst and I always got aligned address.
So I used the above method to pass unaligned address to memmove()
Thanks & Regards,
Channa
Home |
Main Index |
Thread Index |
Old Index