Re: Optimized PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/3/07, Robert Cummings <robert@xxxxxxxxxxxxx> 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.
>
> Cheers,
> Rob.
> --
> ...........................................................
> SwarmBuy.com - http://www.swarmbuy.com
>
>     Leveraging the buying power of the masses!
> ...........................................................
>

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]).

-nathan

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux