This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Performance of copy algorithm
- From: Dhruv Matani <dhruvbird at gmx dot net>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: 11 Aug 2003 19:01:35 +0530
- Subject: Re: Performance of copy algorithm
- Organization:
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.
--
-Dhruv Matani.
http://www.geocities.com/dhruvbird/