Re: how to mark protected properties?

From: Date: Tue, 08 Jun 2004 19:42:15 +0000
Subject: Re: how to mark protected properties?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30214@lists.php.net to get a copy of this message
On Tue, 8 Jun 2004, Bertrand Mansion wrote: > If you mean that objA needs to set an instance var value in objB through an > accessor inside of a > 10000000 loop, then I'd say the ratio is not 10 times > but 2-2.5 times slower which, I agree, is still a lot. But I can't think of > examples where this couldn't be handled with a better design of your class. Besides, in real world, software does much more than sets variables or properties 10000000 times in a loop. Of course using accecssor methods is slower. No one is arguing that. However I doubt the performance penalty is usually nothing compared to other botlenecks forgotten into the code. Of course if other parts of your code is perfect, the speed gain from accessing properties directly will be relatively bigger. -- Mika Tuupola http://www.appelsiini.net/~tuupola/

« previous php.pear.dev (#30214) next »