bcopy

Andrew Hume andrew at alice.UUCP
Mon Dec 12 14:58:45 AEST 1988



don't let the twerps responsible for the memcpy/memmove debacle blind
implementers. memcpy and memmove should be the same entry point;
the test for overlapping regions is only a few instructions and just doesn't
matter in any practical timing sense. If the bytecount is at all significant,
initial overhead is irrelevent and if teh bytecount is small, then the
subroutine call overhead is probably 2-3 times more expensive than the
check.
	in any case, in a lot of hardware, overlapping doesn't matter;
what matters is left to right or right to left.
	does anyone know of any case where the above analysis fails?



More information about the Comp.unix.questions mailing list