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

Posted by Iván Sánchez Ortega on 02/08/07 19:16

howa wrote:

> Do not use return-by-reference to increase performance, the engine is
> smart enough to optimize this on its own
>
> ------------------
>
> Why?

Please re-read the above sentence. Specifically, re-read the part about "the
engine is smart enough to optimize this on its own".

> Return-by-reference should at least faster, more efficient, so I can't
> find a reason not using it.

Code cleanliness. If the Zend Engine is capable of returning references as
needed, why bother keeping track of what is a reference and what is not?

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

"kill -9 needs no justification!"
-- BOFH

 

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

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