Re: Optimized PHP

From: Date: Wed, 03 Oct 2007 14:34:43 +0000
Subject: Re: Optimized PHP
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-262683@lists.php.net to get a copy of this message
On Wed, 2007-10-03 at 10:22 -0400, Nathan Nobbe wrote: > On 10/3/07, Robert Cummings <robert@interjinn.com> wrote: > > > > On Wed, 2007-10-03 at 09:52 -0400, Nathan Nobbe wrote: > > > > > > one nice trick you can easily implement is to compress your code before > > > pushing it to production. > > > the php cli exposes a method for stripping out the whitespace and > > comments. > > > > > > php -w > > > > Do it right, use a compile cache like Eaccelerator or APC. > > > of course i use the caching engines as well, but for people who dont > want to use a caching engine or arent allowed to, i think this is a great > strategy. especially since php facilitates it out of the box. > another benefit is less disk space on the production system for the code. > and even when using a compile cache, the first time the script is > interpreted > it will take less time to read in the source (oh i guess were getting into > milliseconds > again [heh]). More likely a microsecond issue :) Cheers, Rob. -- ........................................................... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ...........................................................

« previous php.general (#262683) next »