 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPClasses.org: The Secret PHP Optimization of version 5.4
by Chris Cornutt June 14, 2012 @ 12:12:42
In this new post from Manuel Lemos on the PHPClasses.org blog about some of the performance enhancements that were introduced in the latest PHP releases (the 5.4.x series) including variable access optimization.
PHP 5.4 introduced several performance optimizations. One of them was not discussed much in the PHP community but it may affect the performance of your code depending on the way you write it.
He gets into some of the details surrounding the variable access optimization, pointing out how to get the most out of this improvement. He also does a bit of speculation about future versions of the language, including the possible introduction of "Just In Time" compilers.
voice your opinion now!
optimization version variable access object property
NETTUTS.com: Your First WordPress Plugin Simple Optimization
by Chris Cornutt June 01, 2010 @ 09:47:13
On NETTUTS.com today there's a new tutorial introducing you to the world of WordPress plugins by helping your create your first plugin - an optimization plugin that will help with things like page load time and general SEO.
This tutorial is going to assume that you have at least a beginner's understanding of PHP and the WordPress syntax. Though we'll be covering everything, some knowledge beforehand will help you grasp the concepts much more easily. I'll also assumes that you have a WP blog setup and ready to go.
The plugin takes out useless meta tags, unloads unneeded filters and handles some SEO work like adding tags and an excerpt into the post's header information. The break the plugin down into the different parts and include the code to get each of them working including a call to optimize all of the tables in your current WordPress install's database.
voice your opinion now!
wordpress plugin optimization tutorial
P'unk Avenue Blog: Faster, PHP! Kill! Kill!
by Chris Cornutt March 17, 2010 @ 16:36:30
On the P'unk Avenue blog there's a recent post from Tom Boutell looking at optimizing PHP applications and how you can cope with the possibility of "Serious Traffic" that might come your way.
PHP is easy...as programming languages go, that is. You can build sites in a real hurry. [...] Still, sooner or later success catches up with you and you want your site to cope with Serious Traffic...or cope with moderate traffic on a cheap virtual machine...or at the very least, not be dog-slow with just a handful of users on the system.
He mentions things that can slow down the application (like timeouts on web server connections or not optimizing the site with a "thin" server for non-PHP requests). He mentions the alternative PHP cache (APC) as one possible way to help, some tips on making your Apache server more efficient and pushing those lighter requests off to a smaller, built-for-speed server using FastCGI.
voice your opinion now!
optimization fastcgi apc apache request
Dublish.com: Simple Optimization for PHP and MySQL
by Chris Cornutt June 22, 2006 @ 12:32:31
Dublish.com has this post from a little while back with some good tips on how to squeeze the most out of your MySQL and PHP scripts with some simple, handy tips.
The MySQL list includes things like:
- MySQL is interpreted from right to left so you should put the most significant limiters as far to the right as possible.
- Use indexes on the columns in the WHERE clause and on the columns you want to ORDER BY.
- Sometimes mysql_free_result() end up wasting more memory than it saves. Check the difference with memory_get_usage().
- Use NOT NULL as default value as much as you can, it speeds up execution and saves one bit.
And the PHP list includes:
- When echoing strings it's faster to separate them by comma instead of dot.
- Unset your variables to free memory, especially large arrays.
- Many code blocks might slow down the interpretation a little bit.
There's also all sorts of other tips down in the comments as well.
voice your opinion now!
mysql optimization simple tips tricks mysql optimization simple tips tricks
Hackers Center Blog: PHP optimization - Save the server!
by Chris Cornutt May 10, 2006 @ 06:30:09
On the blog at HackersCenter.com, there's a new post looking a a few simple ways to help optimize your PHP code. Sure, most of the everyday scripts developers write don't benefit a whole lot from shaving off those extra milliseconds in execution time, but it's always a good practice to get into when you get into those larger scripts.
Php optimization is the skill of fine tuning an application to extract maximum performance with minimum server load. Many of my clients in the past have wondered why I spend extra hours just to get the script execution time to be cut down by 1 second.
However if you consider an average large scale application, it would receive about 1000 unique visitors an hour (approximation based on average statistics for my clients websites) and an average of about 8 page views per user. This would mean that your server would face 8000 requests for that page every hour.
The author follows this up with a few more stats before getting on with the heart of the article - the tips and tricks. They demonstrate a sample function to help test the speed of the script before looking at different topics of optimization - outputting an array, regular expressions, using references, and file inclusion. For each, there's a "slow way" and a "fast way" - I wonder which is the better choice...
voice your opinion now!
optimization save server requests statistics optimization save server requests statistics
|
Community Events
Don't see your event here? Let us know!
|