You are here: Re: [PHP] How efficient is OOP in PHP5? « PHP « IT news, forums, messages
Re: [PHP] How efficient is OOP in PHP5?

Posted by Jochem Maas on 08/11/05 11:04

TalkativeDoggy wrote:
> Hi all,
>
> I have heard that "function style is 400% faster than OOP in PHP", and
> give a little agreement. So in the past year, I write more PHP code in
> function way while less in OOP way.
>
> This morning, I read an article called "How efficient is OOP in PHP"
> according to the author's test, writing PHP code in procedural
> way(functions) is 200%+ faster than OOP way.
>
> But this article is written in 2003, now, I am using PHP5, how about the
> performance of OOP in PHP5? Could any one give me more efficient
> references?

objects are slower than functions.
functions are slower than straight up code.

OO in php5 is a lot better than in php4 also in terms of speed.
php5.1 brings a new execution model in the zend engine (IIRC),
regardless the change I refer to gives a not to small speed boost
for OO stuff.

bottom line - its fast enough, and if you need more speed maybe you
need to write a custom extension :-)

>
> Any suggestion or help will be greatly appreciated.
>
> Qin Jianxiang
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация