RE: [PHP] PHP OOP x Procedural Performance
| From: | Jay Blanchard | Date: | Thu, 29 May 2003 11:37:35 +0000 |
| Subject: | RE: [PHP] PHP OOP x Procedural Performance | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-149380@lists.php.net to get a copy of this message | ||
[snip]
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 ?
[/snip]
We have done some informal testing and have found negligible difference
mostly due to current processor power, even on single processor
machines. Therefore OOP in PHP is a good thing when used correctly.
HTH!
Jay