George Schlossnagle Presents talk On High Performance PHP
p. ! p. 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 !>http://static.flickr.com/72/198177298_73ff2cd843_m.jpg! # User a compiler cache p. George made the point that RDBMS are the most common application bottleneck that he runs across when helping people improve their PHP performance. =C=
# 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.


3 comments to “George Schlossnagle Presents talk On High Performance PHP”
July 28th, 2006 at 4:03 am
- If you use a lot of logic in your code or you have a lot of evolution in your code, don’t event think of php. Use java or another typed language or you will loose a lot of time debugging "compilation level" code.
- 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.
September 21st, 2006 at 7:10 am
- If you use a lot of logic in your code or you have a lot of evolution in your code, don’t event think of php. Use java or another typed language or you will loose a lot of time debugging "compilation level" code.
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.
December 19th, 2006 at 7:38 am
[url=http://christmas-clipartt.info]christmas clipart[/url] – Great search engine when You can find lots of christmas cliparts
think and find yours
before 24th
[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…
[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;)