|
Posted by howa on 02/08/07 18:18
from PHP manual, it said:
>> http://hk.php.net/manual/tw/language.references.return.php
Do not use return-by-reference to increase performance, the engine is
smart enough to optimize this on its own
------------------
Why?
The bottom line from my view in using reference in all my codes are :
1. memory allocation need time! why not use reference?
2. you waste memory for storing two copies of data
Return-by-reference should at least faster, more efficient, so I can't
find a reason not using it.
Navigation:
[Reply to this message]
|