Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic gzip & speed? (Read 3263 times)
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
gzip & speed?
Apr 13th, 2002 at 6:16pm
Print Post  
Just curious how fast is gzip?

I know that it will lower the size of the transfered data but will it make it faster too? Or will it make everything even slower because the compression takes some CPU power?

Also I know two different methodes to use gzip: internal and external
Code
Select All
open(GZIP, "| gzip -f");
print GZIP $output;
close(GZIP);
 

and
Code
Select All
require Compress::Zlib;
print Compress::Zlib::memGzip($output);
 


what is faster/takes more cpu power?
  

The Administrator.
Back to top
WWW  
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: gzip & speed?
Reply #1 - Apr 14th, 2002 at 6:19pm
Print Post  
I tried something like that, and it was actually faster to gzip and transfer....
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: gzip & speed?
Reply #2 - Apr 14th, 2002 at 7:31pm
Print Post  
Christer Alexander wrote on Apr 14th, 2002 at 6:19pm:
I tried something like that, and it was actually faster to gzip and transfer....

huh? I didn't get that... what is faster than gzip?
  

The Administrator.
Back to top
WWW  
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: gzip & speed?
Reply #3 - Apr 15th, 2002 at 8:30am
Print Post  
not faster THAN, faster TO.

which means, for me it was faster to gzip and transfer compared to just transfering
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: gzip & speed?
Reply #4 - Apr 15th, 2002 at 4:14pm
Print Post  
oh ok Smiley

I'll enable gzip for this board here then... lets see if it makes a difference... Wink
  

The Administrator.
Back to top
WWW  
IP Logged
 
Ty
Junior Member
**
Offline


I love YaBB 1 Gold!

Posts: 63
Joined: Aug 25th, 2001
Re: gzip & speed?
Reply #5 - Apr 16th, 2002 at 1:00am
Print Post  
This is really weird right before I hit Boardmod for my annual daily visit I installed Gzip on my Apache server.  And holy CR*P is it freaking fast now.  It complies all of my WebPages (Written in PHP) in 1/2 the time or better.  My GOD is this fast why didn't I use it before Smiley.  I'm running this server on a pI yes that's right a Dinosaur.... and with gzip running it decreased system resource use along with processor time.  Smiley tell me how it goes

~Ty
  
Back to top
WWW  
IP Logged
 
Paul Penrose
Guest


Re: gzip & speed?
Reply #6 - Apr 17th, 2002 at 4:50pm
Print Post  
Most modern computers (and even not-so-modern) are I/O bound. They can process data much faster than they can read and write it to/from storage. This means you have boku CPU cycles to spare between I/O cycles and you may as well use them to reduce the total amount of data you need to transfer.

Where I work we regularly work with data sets over 100meg, some approaching several gig, so we need to compress them on-the-fly as they are created in order to keep the disk transfer time down.

Paul.
  
Back to top
 
IP Logged
 
DemonSlayer
God Member
*****
Offline


I am the face of pure
evil!

Posts: 1398
Joined: Jul 26th, 2001
Gender: Male
Re: gzip & speed?
Reply #7 - Apr 19th, 2002 at 10:02pm
Print Post  
Ty wrote on Apr 16th, 2002 at 1:00am:
This is really weird right before I hit Boardmod for my annual daily visit I installed Gzip on my Apache server.



How do u visit here yearly every day? Tongue
  
Back to top
ICQAIM  
IP Logged
 
Ty
Junior Member
**
Offline


I love YaBB 1 Gold!

Posts: 63
Joined: Aug 25th, 2001
Re: gzip & speed?
Reply #8 - Apr 20th, 2002 at 12:06am
Print Post  
Smiley LOL I never did pass Econ Tongue

WEEE HAAA Someone read what I wrote Grin
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint