Re: str_repeat() patch

From: Date: Sun, 13 Jun 2004 12:58:54 +0000
Subject: Re: str_repeat() patch
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-10419@lists.php.net to get a copy of this message
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

« previous php.internals (#10419) next »