CSharp/C# >> Why is its substantialy slower to load 50GB of gzipped file (20GB gzipped file) then loading 50GB unzipped data? im using System.IO.Compression.GZipStream and its not maxing out the cpu while loading the gzip data! Im using the default buffer of the stream

by DR » Fri, 05 Sep 2008 06:54:31 GMT

Why is its substantialy slower to load 50GB of gzipped file (20GB gzipped
file) then loading 50GB unzipped data? im using
System.IO.Compression.GZipStream and its not maxing out the cpu while
loading the gzip data! Im using the default buffer of the stream that i open
on the 20GB gzipped file and pass it into the GZipStream ctor. then
System.IO.Compression.GZipStream takes an hour! when just loading 50GB file
of data takes a few minutes!



CSharp/C# >> Why is its substantialy slower to load 50GB of gzipped file (20GB gzipped file) then loading 50GB unzipped data? im using System.IO.Compression.GZipStream and its not maxing out the cpu while loading the gzip data! Im using the default buffer of the stream

by raylopez99 » Fri, 05 Sep 2008 07:02:39 GMT



I have no idea. Perhaps your resident virus checker is checking the
zipped file? Try turning it off.

BTW who besides me has a beef with Google Gmail not accepting emails
that contain Zip attachments!?! *THIS* is evil! Do no evil My ARSE.
Ridiculous.

RL

CSharp/C# >> Why is its substantialy slower to load 50GB of gzipped file (20GB gzipped file) then loading 50GB unzipped data? im using System.IO.Compression.GZipStream and its not maxing out the cpu while loading the gzip data! Im using the default buffer of the stream

by Jon Skeet [C# MVP] » Fri, 05 Sep 2008 15:04:03 GMT


<snip>


GMail works with zip attachments. However, it doesn't allow certain
file types to be sent/received, even in zip files.
See http://mail.google.com/support/bin/answer.py?answer=6590&topic=12842

Jon

Similar Threads

1. Why is its substantialy slower to load 50GB of gzipped file (20GB gzipped file) then loading 50GB unzipped data? im using System.IO.Compression.GZipStream and its not maxing out the cpu while loading the gzip data! Im using the default buffer of the st

"DR" < XXXX@XXXXX.COM > wrote in message 
news: XXXX@XXXXX.COM ...
> Why is its substantialy slower to load 50GB of gzipped file (20GB gzipped 
> file) then loading 50GB unzipped data? im using 
> System.IO.Compression.GZipStream and its not maxing out the cpu while 
> loading the gzip data! Im using the default buffer of the stream that i 
> open on the 20GB gzipped file and pass it into the GZipStream ctor. then 
> System.IO.Compression.GZipStream takes an hour! when just loading 50GB 
> file of data takes a few minutes!
>


Define "loading."  Do you have 50+ GB of ram?  But seriously, you're adding 
a lot of extra processing when opening compressed data.  With uncompressed 
data, you're just retrieving as much as you can hold in memory (virtual or 
otherwise)... or simply copying data into memory.

Try opening a 5MB file, it should "load" about as fast as the 50GB 
uncompressed file.  That's because you're not actually "loading" the whole 
50GB at once.

With the compressed file on the other hand, you are processing the whole 
thing before any real progress can be made.

Personally if I had 50GB of data that I needed to compress (I don't have 
that much on 2 hard drives by the way, and I can listen to music for a week 
straight without hearing the same song twice), I wouldn't use a zip format.

-Roger Frost 

2. Why is its substantialy slower to load 50GB of gzipped file (20GB gzipped file) then loading 50GB unzipped data? im using System.IO.Compression.GZipStream and its not maxing out the cpu while loading the gzip data! Im using the default buffer of the stream - ADO.Net