This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Performance of copy algorithm
- From: Jerry Quinn <jlquinn at optonline dot net>
- To: Dhruv Matani <dhruvbird at gmx dot net>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 11 Aug 2003 22:00:42 -0400
- Subject: Re: Performance of copy algorithm
- References: <1060608695.2404.6.camel@home.free>
Dhruv Matani writes:
> A) Open coded loop on char 7.20s
> B) memcpy 0.80s
> C) Loop using doubles 1.68s
> (cheats on alignment and block size)
> D) memmove 18.96s
> E) std::copy (which translates to memmove) 18.96s
>
> I have just copy pasted this form a post in the past.
>
> I'd like to say, that on my system (RH-9, 2.4.20-8), memmove
> is _*actually*_ faster than memcpy!!!!! That comes as a surprise to me.
What CPU?