Login   Register  
PHP Classes
elePHPant
Icontem

Good article

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Classes blog  >  Why is it better to d...  >  All threads  >  Good article  >  (Un) Subscribe thread alerts  
Subject:Good article
Summary:OOP can be faster depending if it is done correctly
Messages:2
Author:Aziz S. Hussain
Date:2012-03-21 18:13:20
Update:2012-03-21 22:50:09
 

  1. Good article   Reply   Report abuse  
Picture of Aziz S. Hussain
Aziz S. Hussain
2012-03-21 20:34:19
I have worked with many systems. Lately, I had the honor to work with a delivery system that processes over 1,000 requests per second.

Original code was written in straight PHP. After re-write using OOP (with more additional features, it lowered the response time by over 50%).

Clean, straight OOP can definitely be faster, it was for my case at least.

Aziz

  2. Re: Good article   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2012-03-21 22:50:09 - In reply to message 1 from Aziz S. Hussain
Performance is often more a matter of architecture than programming style.

As I explained in another response, the greatest performance bottleneck is the database.

If you used a caching system to avoid database accesses, you probably gained a lot in terms of performance, regardless if you use global code or OOP.