This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Efficiency of memmove vs. generic typed copy
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: libstdc++ at gcc dot gnu dot org
- Date: 11 Dec 2005 02:54:25 +0100
- Subject: Efficiency of memmove vs. generic typed copy
Our typed std::copy() is specialized for T*, where T is a POd, as a
forwarding function to generic memmove() from the C library.
Do we have evidence that for the majority of the targets supported by
GCC, that is a win compared to the typed generic copy()
implementation that exposes alignment and other goodies to the optimizer?
On which targets do we know copy() wins?
-- Gaby