Re: PEAR::isError()]
| From: | Thomas Stinner | Date: | Wed, 06 Dec 2000 09:18:56 +0000 |
| Subject: | Re: PEAR::isError()] | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40211@lists.php.net to get a copy of this message | ||
On Tue, Dec 05, 2000 at 01:12:35PM +0200, Zeev Suraski wrote:
> >This is not what you expect, how comes? This is really strange. Does
> >this result mean that you're working on the reference issue and we can
> >expect dramatic speed improvements in future versions?
>
> It has to do with how objects are implemented, and the way the reference
> counting mechanism works. Simply put - (1) objects will always be
> references, and other data types will usually not be references (2) Passing
> references by reference is quicker than not, passing non-reference by
> reference is slower than not
I don't understand why this is the case. If you have a huge array and
pass it by value you need to copy the hole array. If you pass by
reference you just need to count the reference. At least this is what i
would expect. Isn't that the case?
--
Mit freundlichem Gruß
Thomas Stinner - billiton internet services GmbH
Geschäftsleitung
--------------------------------------------------------------
direct phone: 0271/30386-11 direct mail: t.stinner@billiton.de
Weitere Informationen finden Sie unter http://www.billiton.de/