Re: Comparative performance

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

 



On Fri, 2008-11-14 at 12:12 +0000, Richard Heyes wrote:
> Hi,
> 
> Can I get input on the following:
> 
> Uncompressed library: 15k
> Compressed library, but using the PHP engine (ie ob_start()): 3.5k
> 
> Which would be better? Obviously from the client perspective
> compressed would be better, but from the servers perspective...? An
> increase in the amount of time to put the file on the pipe, or an
> increase (no matter how small) in load because of the PHP engine and
> compression.

Better to use compression. It frees up the webserver process faster to
handle other connections. The longer you have a request being served the
longer the resources allocated to serve the request are unavailable to
other requests. So what benefits the client, small download size, also
benefits the server. Also, if possible, use web server compression
(mod_gzip or mod_deflate) instead of PHP compression.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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