Michael Walter wrote:

Well, surely memmove() needs an additional branch to check for overlapping, though (the OP was wrong in that memmove() would need a temporary buffer, though - it doesn't, it usually copies from high addres to low in the overlapping case).

The whole discussion about memcpy beeing faster than memmove is completely pointless. It is obvious that copying without checking is faster than coyping with checking. But the performance impact is minimal, otherwise it would not be fact that the BSD's all have memcpy==memmove.


Stefan

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to