Object Oriented PHP Memory Concerns
Posted on September 18th, 2008 by SamOn September 17th, 2008, Ryan Campbell wrote:
It’s hard to imagine pushing the limits of object oriented PHP so far that your web servers choke, but the truth is those limits are reached faster than you think. We’ve run some tests over at Wufoo and it turns out that any sort of mass object creation is pretty much not going to work at scale. The problem is this limit on object creation forces developers to balance code consistency, which is desirable—especially for the old-schoolers, with performance. While replacing objects with arrays when possible makes things a little better, the most performance friendly approach involves appending strings. For your convenience, we’ve run some tests that measure page execution times and memory usage to create the following guideline to help you plan out what areas of your code may have to break away from an object oriented nature.
Continue reading: Object Oriented PHP Memory Concerns




![Validate my RSS feed [Valid RSS]](http://php-phreaks.com/wp-content/themes/php-Phreaks/imgs/valid-rss.png)
Leave a Reply