[ccache] [PATCH] Speed up "copy4", "copy64" on little-endian systems.
joel at rosdahl.net
Tue Jan 1 10:19:38 MST 2013
On 21 November 2012 18:46, Andrew Stubbs <ams at codesourcery.com> wrote:
> The copy64 function implements an endian-safe copy routine for
> an array of 16 32-bit integers, but this is sub-optimal on machines
> where the byte-order is already correct. Likewise for copy4.
> This patch replaces the implementation with a simple memcpy when
> appropriate, and retains the old implementation otherwise.
> Note that the compiler will always inline calls to memcpy for small
> byte-counts, so this is a big win.
By the way, the patch is missing some headers, so "git am" doesn't
understand it. I suggest using "git format-patch" instead of "git
diff" for generating future patches.
More information about the ccache