|
PHP: The need for speed
Want More Speed? Let's Cache...
If you need extra speed for your heavy PHP application, than probably the solution is caching. There
are some possible solutions out there. I tried Zend Cache (trial-version), APC, and Afterburner Cache.
The above are "caching modules". They store and intermediate coded version of your PHP sources inside
the webserver's memory, the first time your .php file has been requested, and they serve subsequent
requests with the "compiled" version. This approach can really boost your application's performance,
since this minimizes access to disk (the code has been already read and parsed), and also
works in RAM, which makes things a lot faster. Obviously the caching module will notice of changes
in your PHP sources, and will redo the job again, so your users won't get pages coming out of stale
cached PHP code. Caching modules are really well-suited for heavily loaded sites, since they can
decrease your server's load and make PHP work even faster. But, which one should I choose?
Zend Cache is a commercial product from Zend Technologies (yes, the ones that brought us the PHP engine
and the Zend Optimizer for free...). It really does what they say! You can notice the speed improvement
in heavy PHP pages just after the first run, and the server also has more free resources. Unfortunately
you have to pay for this, but in some cases it's well worth the price.
Afterburner Cache is a free caching module available from Bware Technologies.
Currently in beta, it seems to do same the same things that Zend Cache does. It can't push performance
up as Zend Cache does (yet), and it doesn't work with Zend Optimizer yet, but it's free,
and my compliments go to bware folks for this nice job.
APC (Alternative PHP Cache) is another free caching module available from
Community Connect.
Seems stable enough for production use, and also seems to speed up things a lot. Beware, I haven't found a
official benchmark yet, so I had to test them with some of my applications. As always, your mileage my vary.
[ Next Page ]
| Comments: | ||
| This was closely associated with the rebirth of | Sex Beplaced Ru | 12/06/04 16:31 |
| it tells me i don't have | Sex | 12/06/04 16:29 |
| If not, what were all the witch trials about? | Sex | 12/06/04 16:27 |
| You are right ofcourse... But... | Sex Beplaced Ru | 12/06/04 16:27 |
| freaking BS, I enjoyed the IP | Freeflashonlinegames Com | 12/06/04 16:24 |
| ´ë'Ãâ'°Å'Àý'½Ã'100%µÇ'°Ô'ÇÏ'´Â'¹æ'¹ý | ÇѰæ¿í | 12/05/04 08:43 |
| Ä«/µå/µ¹·Á¸·±â·Î/¸Á°¡Áö½ÅºÐ/²À º¸¼¼¿ä! | ÀÌÇýÁø | 11/24/04 20:35 |
| ´ë'Ãâ'°Å'Àý'½Ã'100%µÇ'°Ô'ÇÏ'´Â'¹æ'¹ý | ÇѰæ¿í | 11/24/04 06:43 |
| ½Å.¿ë.ºÒ.·®.ÀÚ/´çÀÏ500/´ë.Ãâ.ºñ.¹ý | ÀÌÈñÁø | 11/19/04 21:50 |
| 10_ºÐ¾È¿¡ Çö.±Ý40¸¸_¿ø ¸¸.µé,±â | ÀÌÁ¤¿¬ | 11/15/04 08:09 |
| ´ë'Ãâ'°Å'Àý'½Ã'100%µÇ'°Ô'ÇÏ'´Â'¹æ'¹ý | ÇѰæÇý | 11/13/04 04:38 |
| pls help | alin | 10/16/02 08:46 |
| hi im back | zaid | 09/30/02 14:17 |
| RE: persistent variables without sessions | Benjamin Roth | 09/12/02 19:53 |
| Shameless ZEND plug here? | cedric veilleux | 08/23/02 17:42 |
| Having strange W2k Adv Srvr perfomace probs | Jeff Barton | 06/27/02 20:07 |
| RE: What about .js and .css files? | Edward Tsai | 06/26/02 14:58 |
| gzhandler | danbee | 01/22/02 12:22 |
| RE: What about .js and .css files? | sergio | 09/19/01 09:44 |
| persistent variables without sessions | Greg Wallis | 07/17/01 12:18 |
| HELP!how to make my site fast | santosh | 06/23/01 02:16 |
| RE: gzip? | Sean Allin | 06/21/01 12:57 |
| RE: Caching in memory | Hinnerk Bruegmann | 05/29/01 13:51 |
| RE: HELP!!How to limit records in ORACLE? | V. O | 05/09/01 09:03 |
| HELP!!How to limit records in ORACLE? | kaiser | 05/04/01 07:44 |
| RE: Zend optimizer reported in phpinfo but...? | Piergiorgio Spagnolatti | 04/25/01 14:14 |
| Zend optimizer reported in phpinfo but...? | Venkatesh | 04/17/01 04:35 |
| RE: What about .js and .css files? | Piergiorgio Spagnolatti | 04/06/01 02:06 |
| What about .js and .css files? | Len Coonan | 04/02/01 22:06 |
| Re: PHP Need for speed | xcyber | 03/31/01 04:41 |
| Re: PHP Need for speed | Ray | 03/30/01 16:50 |
| RE: gzip? | Piergiorgio Spagnolatti | 03/30/01 07:29 |
| Sending gzipped cached pages. | Jean-Pierre Deckers | 03/27/01 14:35 |
| minimize the "include" function | Joe Shelby | 03/26/01 14:10 |
| RE: mod_gzip 1.3.19.1a | Piergiorgio Spagnolatti | 03/26/01 01:19 |
| RE: Gzip strange behaviour | Eric Blade | 03/25/01 23:17 |
| RE: Caching in memory | Zeev Suraski | 03/25/01 17:30 |
| RE: gzhandler: don't beleive everything you read | Zeev Suraski | 03/25/01 17:23 |
| Tweaking code | Eric Blade | 03/24/01 11:15 |
| mod_gzip 1.3.19.1a | Tim Frank | 03/23/01 22:25 |
| RE: Gzip strange behaviour | Dave Gullo | 03/23/01 19:01 |
| RE: What load does GZIP put on the CPU? | Ingo | 03/23/01 11:20 |
| gzip? | Vladimir Rüntü | 03/23/01 03:14 |
| RE: Caching in memory | Piergiorgio Spagnolatti | 03/23/01 03:02 |
| RE: Gzip strange behaviour | Piergiorgio Spagnolatti | 03/23/01 02:43 |
| RE: gzhandler: don't beleive everything you read | Piergiorgio Spagnolatti | 03/23/01 02:41 |
| RE: That looks great | Piergiorgio Spagnolatti | 03/23/01 02:33 |
| RE: What load does GZIP put on the CPU? | Piergiorgio Spagnolatti | 03/23/01 02:30 |
| RE: PHP4 versus PHP3 | Piergiorgio Spagnolatti | 03/23/01 02:23 |
| Gzip strange behaviour | Michael Kimsal | 03/22/01 19:24 |
| Caching in memory | Onno Benschop | 03/22/01 18:52 |
| Well tackled the problem | Moritz Post | 03/22/01 14:00 |
| Somebody set up us the bomb! | Rich Alloway | 03/22/01 12:33 |
| PHP4 versus PHP3 | Michael Koehler | 03/22/01 12:09 |
| That looks great | Ronan | 03/22/01 11:09 |
| gzhandler: don't beleive everything you read | Tom Anderson | 03/22/01 10:28 |
| Addendum/Errata | Piergiorgio Spagnolatti | 03/22/01 06:14 |
| For more PHP speedup tips, visit this URL | John Lim | 03/22/01 02:05 |
| What load does GZIP put on the CPU? | stef | 03/21/01 23:54 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


