George Schlossnagle gave a talk on “High Performance PHP” which was very good. At OmniTI, George works with a lot of different clients helping them resolve bottlenecks and squeeze the most out of their applications. This experience along with the collective knowledge of OmniTI gives him unique insight into ways to speed up PHP applications. I only got to sit in on a small portion of his session but even so, I was able to get some good tips.
I’m not summarizing his entire session because he had 3.5 hours and I’ve got about 30 seconds. He did, however, give a “Top 10” list and I’ll share that with you. Here are George’s “10 Best Practices” related to PHP performance

- User a compiler cache
- Control your include trees to no more than 10 includes
- Be mindful of how you use your RDBMS
- Be mindful of how you use other network resources
- Use RegEx cautiously
- Always build with caching in mind
- Output buffering and compression are good.
- Watch for resource exhaustion
- Profile early, profile often.
- Dev-Ops cooperation is essential.
George made the point that RDBMS are the most common application bottleneck that he runs across when helping people improve their PHP performance.
=C=

Comments
- What make PHP popular, is that mistakes you make in you code are "erased" after each call - so even a entry-level developer can develop something without breaking the system. But if you need performance, it means you need good cache management, and php in not very good at this level. A java server run call as an application - so can share information, a php server run call as a single process.
As of php5, there is support in php for types and interfaces. Thanks for just blindly trolling.
"- What make PHP popular, is that mistakes you make in you code are "erased" after each call - so even a entry-level developer can develop something without breaking the system. But if you need performance, it means you need good cache management, and php in not very good at this level. A java server run call as an application - so can share information, a php server run call as a single process."
What makes php popular is that it is user friendly. Instead of explicitly having to go through countless mundane type declarations, variables are simplified so that an educated programmer knows exactly what type his or her variable is, and the language is still usable by novices because it follows a natural behavior. As for this "cache management," there are several different implementations for loading scripts into opcodes and maintaing of a cache which are packaged separately from php. Zend Platform includes one implementation, and there are 2 other than can be installed simply with pear. Once installed, the behavior of php is akin to a j2ee environment which incurs a performance hit when JSP is compiled, and then loaded into jvm from that bytecode. The only difference is that the php "vm" translates from source and java from bytecode. Of course both both languages offer a way to load these two into the "vm" upon deployment. You can manage "application level" persistantance through this cache as well. Although, most programmers worth their weight realize that data belongs in a database.
You see, there's a difference in philosophies with php and Java. Instead of forcing a rigid framework that forces you to abstract HTTP with cute caffeinated terminology to the infinite levels of obscurity, php offers a simple programming model that acknowledges http and can be advanced when it needs to be. It's not alone in this as other apache mod_ languages do this as well, but I've found that php keeps the more close to the KISS principal than others. I'd like to draw attention to some notable
non-enterprise grade' applications out there such as, digg and flickr, that are running php, and youtube is running off of python. Java biggotry seems to be extremely pointed because they get a fair amount of abuse from the C community who treats them like leapers.
[url=http://christmas-giftsss.info]christmas gifts[/url] - Don't You know what you shoud buy ..?? Check this SE
[url=http://christmas-lyricss.info]christmas lyrics[/url] - search engine with lots of beautifull lyrics and songs... ;)
[url=http://christmas-ornamentt.info]christmas ornaments[/url] - Here you can find lots of great sites about ormaents on Your tree ;)
[url=http://christmas-poems.info]christmas poems[/url] - Just christmas poems ;)
[url=http://christmas-wallpaper.info]christmas wallpaper[/url] - Best search engine of wallpapers. ;)
[url=http://artificial-christmas-treee.info]artificial christmas tree[/url] - Christmas tree... ;) think and find yours ;) before 24th ;)
[url=http://santa-clauss.info]santa claus[/url] - have You ever thougnt what say Your kids about santa claus?? ;)
[url=http://christmas-craftt.info]christmas craft[/url] - check Yourself;)