You are here: Why Returning References can't provide speed up? « PHP Programming Language « IT news, forums, messages
Why Returning References can't provide speed up?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация