[vlc-devel] The "optimized" memory copies

Rafaël Carré rafael.carre at gmail.com
Thu Aug 20 02:40:35 CEST 2009


On Wed, 19 Aug 2009 22:01:51 +0300
"Rémi Denis-Courmont" <remi at remlab.net> wrote:

> 	Hello,

Hi,

> It turns out that vlc_memset() was about 2% slower than plain
> memset()... so I kinda wonder why we bother with implementing it.
> 
> But then, vlc_memcpy() was an outrageous 35% slower than plain
> memcpy() on no- first pass, and 200% (three times, yes!) slower on
> the first pass. Sorry but WTF?

It probably was useful some years ago, but now I think the various libc
(and gcc?) use fast implementations.

The (Fucking Fast?) ffmpeg has no custom routine for these.

Note you'd probably want to test the routines on altivec, but I think
there is no point in checking the MMX (no SSE) routine.

OK for removal

-- 
Rafaël Carré
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090820/f320e3d3/attachment.sig>


More information about the vlc-devel mailing list