Re: PHP OOP x Procedural Performance

From: Date: Thu, 29 May 2003 15:01:46 +0000
Subject: Re: PHP OOP x Procedural Performance
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149421@lists.php.net to get a copy of this message
"William N. Zanatta" <william@null.com.br> wrote in message news:Pine.LNX.4.44.0305282254080.840-100000@carcass.null.com.br... > > It is a known issue that function calls are expensive for the processor. > > The OOP let us better organize the code but, thinking in function (or > method) calls it may be more expensive than in the procedural form. > > My question is, has anyone made any tests regarding the performance of > OOP versus procedural language? Is it a good choice to code in OOP with > PHP ? I would say, that web app model is so inefficient in itself, that you can hardly do anything to make things significantly worse or better performance wise. Also OOP is extensively used in other environments, and unless you are coding critical device drivers, it is rarely to "expensive" in terms of processing time. So my advice would be use OOP, and take benefit of better organization of your code. Just my 2c. rush -- http://www.templatetamer.com/

« previous php.general (#149421) next »