Discover and share the best of the web!
Learn more about Digg by taking the tour.
Faster PHP Apps - Profile Your Code with Xdebug
sitepoint.com — Using Xdebug and WinCacheGrind or KCacheGrind to profile PHP script execution.
- 695 diggs
- digg it
- deathseeker25, on 10/12/2007, -2/+0Great extension... :)
- stinkypyper, on 10/12/2007, -1/+5At a conference I saw Rasmus Lerdorf, the creator of PHP, profile a simple application that executed about 10-20 times a second on a server and then using these tools make that same application and same server, along with a very few small changes, handle I think it was around 1700 hits a second. You would be very surprised what the bottlenecks where. Also, this article does no justice to the interface which on *nix or OS X looks pretty impressive.
- paulannesley, on 10/12/2007, -0/+3I believe these are the slides from that talk: http://talks.php.net/show/lca07
Interesting stuff. - umbrae, on 10/12/2007, -0/+5For those too lazy to read the slideshow, the various things that he used to speed it up were:
- disabling SSL in postgres
- turning on persistent connections in PHP's PDO
- switching to MySQL and using it's query caching
- disabling MySQL's internal prepare by using the PDO::ATTR_EMULATE_PREPARES attribute
- Using APC as an opcode cache to avoid repeated compiling
- Configuring APC to only use absolute paths, and setting apc.stat to 0 to avoid having to stat files
- Storing common variables in shared memory via APC
- Caching DB results via APC as well
- Removing unnecessary include files.
Cheers! - bigkm, on 10/12/2007, -0/+1thanks for posting the link i thought i wrote it down when i seen the talk but lost it on the way back from sydney.
- paulannesley, on 10/12/2007, -0/+3I believe these are the slides from that talk: http://talks.php.net/show/lca07
- ThankTheCheese, on 10/12/2007, -1/+2OO PHP is something I have been wanting to learn for a while. I'm comfortable with 'regular' PHP, but not OO. Is it an easy enough transition? Does anyone have any site or book recommendations?
- paulannesley, on 10/12/2007, -0/+3I found The PHP Anthology by Harry Fuecks most useful when I was getting started with OO PHP.
I should point out that I now work at SitePoint, the company that published these books, but I had not started working here when I read these books - this is just a personal recommendation. - bigkm, on 10/12/2007, -0/+2this book is good for your first deal with objects
PHP 5 Objects, Patterns, and Practice
http://www.amazon.com/exec/obidos/ASIN/1590593804 - Maascamp, on 10/12/2007, -0/+1If you already know PHP then the book Advanced PHP Programming by George Schlossnagle is an excellent resource.
- paulannesley, on 10/12/2007, -0/+3I found The PHP Anthology by Harry Fuecks most useful when I was getting started with OO PHP.
- mdonatas, on 10/12/2007, -2/+1And after tweaking the code, run it on an ASP.NET 2.0 based PHP engine. Gives 50% of execution performance gain alone.
http://www.php-compiler.net/doku.php- paulannesley, on 10/12/2007, -0/+1I imagine these would be the same gains that APC can give, without the complexity of a different and non-open-source platform.
- etng, on 10/12/2007, -1/+0good!
- dostroyer, on 06/07/2008, -0/+0Great extension... :)
___________________________
http://www.anadolujet.gen.tr - oyunaranet, on 10/02/2008, -0/+0thank you it is very good
http://www.oyunara.net http://www.oyunim.com http://www.oyunulkesi.net
http://www.bizimmekan.com http://www.oynatizle.com
Digg is coming to a city (and computer) near you! Check out all the details on our