Re: [patch] gdk-pixbuf optimizations



Am 08 Aug 2001 11:34:33 +0200 schrieb Sven Neumann:

> +              memcpy (dest, p, 3);

 Don't know why you would want to use memcpy for 3 bytes.
 Doing dest[0] = p[0], dest[1] = p[1], dest[2] = p[2] will
 result in much better code. In you're unlucky the memcpy
 will result in an function call which is a severe overhead
 compared to three byte copies (at least on PPC this is the case)
 and if the compiler would generate optimal code then it'd be still
 the same as the 3 byte copies (which will probaly be optimized anyway).

Servus,
       Daniel 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]