web_bandwidth_conservation

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: RE: stripping CRLF on the way out?
From: Mark Hewis <mark.hewis@bbc.co.uk>
Date: Thu, 22 Jun 2000 15:24:29 +0100

Dave DeMaagd [mailto:demaagd@imagegroup.com] wrote:

> Have an application that generates nicely formatted HTML (from
> templates, so that they can be easily edited), but since there's a
> awful lot of extra line breaks (and other things, like comments) that
> we'd like to strip out (save bandwidth), is there an easy way to do
> this via mod_perl, something like a PerlOutputHandler???  
> 
> Something like this would be a far sight easier than having to rewrite
> all of the scripts to do this themselves...  
> 
> Any advice would help greatly! 
 
 
If bandwidth is your issue then why not just zip them up look at 

Apache-GzipChain-0.06

===

Subject: Re: stripping CRLF on the way out?
From: Paul Lindner <plindner@redhat.com>
Date: Thu, 22 Jun 2000 07:52:33 -0700

Try running HTML::Clean on your template, instead of using CPU for
every request to strip output.

I've done this with some success on a few projects..

Also, Apache::ASP users can activate HTML::Clean to post-process all
HTML output, which can result in 20-40% savings.

I read somewhere that 5 bytes is equivalent to 1ms on a 28.8
connection, so these types of optimizations are generally worth the
effort.

===

Subject: Re: stripping CRLF on the way out?
From: fdc@cliwe.ping.de (Frank D. Cringle)
Date: 22 Jun 2000 16:51:41 +0200

Dave DeMaagd <demaagd@imagegroup.com> writes:
> Have an application that generates nicely formatted HTML (from
> templates, so that they can be easily edited), but since there's a
> awful lot of extra line breaks (and other things, like comments) that
> we'd like to strip out (save bandwidth), is there an easy way to do
> this via mod_perl, something like a PerlOutputHandler???

If you are using templates, why not strip them offline?  I use
HTML::Clean on the my HTML::Templates.  A Makefile keeps the working
version up to date with respect to the source.

===

Subject: Re: stripping CRLF on the way out?
From: Ged Haywood <ged@jubileegroup.co.uk>
Date: Sat, 24 Jun 2000 09:51:52 +0100 (BST)

Hi all,

On Thu, 22 Jun 2000, Paul Lindner wrote:

> I read somewhere that 5 bytes is equivalent to 1ms on a 28.8
> connection, so these types of optimizations are generally worth the
> effort.

Don't forget that modems can be clever too.  Most do their own data
compression on the fly, so you may not get the improvement you expect.
If there's less redundancy in the data, there's less to compress away.

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu