Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10419 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47741 invoked by uid 1010); 13 Jun 2004 13:01:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47707 invoked from network); 13 Jun 2004 13:00:59 -0000 Received: from unknown (HELO e-matters.de) (217.69.76.213) by pb1.pair.com with SMTP; 13 Jun 2004 13:00:59 -0000 Received: (qmail 17931 invoked by uid 0); 13 Jun 2004 12:59:59 -0000 Received: from p508d5656.dip.t-dialin.net (HELO php.net) (80.141.86.86) by /var/run/qmail-smtp.pid with SMTP; 13 Jun 2004 12:59:59 -0000 Message-ID: <40CC4F8E.4050300@php.net> Date: Sun, 13 Jun 2004 14:58:54 +0200 User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Walter CC: George Schlossnagle , internals@lists.php.net References: <40CC4EC3.9080407@leetspeak.org> In-Reply-To: <40CC4EC3.9080407@leetspeak.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] str_repeat() patch From: sesser@php.net (Stefan Esser) 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