PHP's OO is bad?
| From: | Geoff Caplan | Date: | Mon, 14 May 2001 14:50:44 +0000 |
| Subject: | PHP's OO is bad? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-52705@lists.php.net to get a copy of this message | ||
Zeev wrote:
> Using OO usually results in a significant slowdown. Significant doesn't
> necessarily mean 50% performance drop; 5% to 20% is not uncommon, and as
> you said, YMMV.
>
This is certainly in line with my own real-world tests. I suspect that in
most applications, much the largest overheads are parsing the scripts
(unless you are using Zend cache or APC) and database calls. On my
application, the few milliseconds of processing time lost by going with OOP
are insignificant compared with these - processing time is simply not the
bottleneck.
On the other hand, well designed OOP can offer significant gains in
maintainability and reusability with complex applications...
Geoff Caplan
Insight Professional