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 TalkativeDoggy on 08/11/05 15:05

Thanks for your help!

That is just what I wana hear.

Actually, in most web applications, the real bottle-neck of performance
is the Database, but not the PHP scripts-of coz, I don't take obvious
mistakes.

So I don't wana write my application without OOP or functions, just for
this bit performance improvement. I need a well maintianed product.
Jochem Maas wrote:
> 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

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