Gzip compression

  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Mar 24, 2004
  • Posts: 1855
  • Loc: Uk
  • Status: Offline

Post June 3rd, 2004, 2:16 am

Well, I know about gzip from using linux, but I've now seen som stuff about compressing web pages. Being crazy about efficiency this has interested me, and now I'm curious.

I was suprised that IE would support such a thing and I i'm also wondering if the payoff of d/l speed against the time to compress and uncompress.

Has anyone used this technology, and does anyone know of a really good source of info? I tried googling but didn't find anything really useful.
CSS website design tutorials
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 3rd, 2004, 2:16 am

  • gsv2com
  • Professor
  • Professor
  • User avatar
  • Joined: Jan 25, 2004
  • Posts: 776
  • Loc: Nippon
  • Status: Offline

Post June 3rd, 2004, 8:49 pm

That's funny. I was just reading about this very thing last night in my new book "Speed Up your Site - Website Optimization (New Riders)" and am also curious to know more.

I'm going to be watching this thread VERY closely.
  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Joined: Aug 16, 2003
  • Posts: 2297
  • Loc: UK - England
  • Status: Offline

Post June 4th, 2004, 12:56 am

just as easy way to compress databases aint it?...

nah, im not 100% sure, i will have a look around
Codebuddies - Website Development Resource
|INCLUDE(), INCLUDE_ONCE(), REQUIRE() IN PHP | - / - |MICROSOFT CRM 4.0 ONCLICK EVENT WITHIN FORM |
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Mar 24, 2004
  • Posts: 1855
  • Loc: Uk
  • Status: Offline

Post June 4th, 2004, 1:02 am

I think you'll be watching closely as it drops of the bottom of the page. I get the feeling this is one of those obscure things that no-one really cares about!

Well what I found out last night was that you can do it with an apache mod, but that will compress everything that gets sent out, including images and pdfs, which are already compressed. So then you start having to write complicated .htaccess files so you don't waste a whole bunch of system resources.

Alternatively you can buffer the output and compress it in PHP. This sounds like the best plan to me, as it's probably only worth compressing the plain text files anyway. That info I got from here:

http://www.zend.com/zend/art/buffering.php

Generally, info I found suggests that it can save 50-80% on filesize for plain text (which sounds about right to me).

Also thinking about it, the system resourses used would be tiny, just to compress a 10k file.

Whether or not it's worth it, I don't know.
CSS website design tutorials

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 106 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.