note 85118 deleted from language.references by cmb
| From: | cmb@php.net | Date: | Sun, 01 Sep 2019 07:47:39 +0000 |
| Subject: | note 85118 deleted from language.references by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212067@lists.php.net to get a copy of this message | ||
Note Submitter: blake
----
To ffmandu13 at hotmail dot com, that's not correct. If you do a little research, you'll
see that the Zend Engine employs "copy-on-write" logic, meaning that variables will be
referenced instead of copied until it's actually written to. There's really no need to
circumvent Zend's internal optimizations, since they're probably much more advanced than
you think. Here's a good link to read over:
http://bytes.com/forum/thread769586.html
As stated, there's rarely (if ever) a need to use references for optimization purposes. When in
doubt, remember that in most cases, the Zend Engine > you.