Re: Reference or copy?
| From: | Ted Wood | Date: | Wed, 23 Jul 2008 08:21:54 +0000 |
| Subject: | Re: Reference or copy? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277185@lists.php.net to get a copy of this message | ||
On 23-Jul-08, at 1:19 AM, Ted Wood wrote:
So PHP waits until a copy is actually needed before it makes one. Explicitly making copies incurs overhead because of the concept of "reference counting". So again, don't use references for performance reasons.That should've been: Explicitly making "references", not copies... ~Ted