Use of memcpy() in libpng

Ramana Radhakrishnan ramana.radhakrishnan at linaro.org
Tue Sep 27 08:47:33 UTC 2011


On 26 September 2011 21:51, Michael Hope <michael.hope at linaro.org> wrote:
> Saw this on the linaro-multimedia list:
>  http://lists.linaro.org/pipermail/linaro-multimedia/2011-September/000074.html
>
> libpng spends a significant amount of time in memcpy().  This might
> tie in with Ramana's investigation or the unaligned access work by
> allowing more memcpy()s to be inlined.

It's the unaligned access and the change / improvements to the memcpy
that *might* help in this case. But that ofcourse depends on the
compiler knowing when it can do such a thing. Ofcourse what might be
more interesting is the kind of workload analysis that Dave's done in
the past with memcpy to know what the alignment and size of the buffer
being copied is.

cheers
Ramana

>
> -- Michael
>
> _______________________________________________
> linaro-toolchain mailing list
> linaro-toolchain at lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/linaro-toolchain
>



More information about the linaro-toolchain mailing list