J
John Edwards
I'm trying to come up with a more cache efficient memcpy loop
to reduce the number of cache misses I'm experiencing.
My current solution:
for (i = 1; i < numlines; i++)
{
foo(Offset >= 0);
RMemCopy(CurrentPos, Line, (unsigned)Abs(Offset));
CurrentPos += Offset;
}
I'm even open to inline ASM.
Any ideas?
to reduce the number of cache misses I'm experiencing.
My current solution:
for (i = 1; i < numlines; i++)
{
foo(Offset >= 0);
RMemCopy(CurrentPos, Line, (unsigned)Abs(Offset));
CurrentPos += Offset;
}
I'm even open to inline ASM.
Any ideas?