Welcome to Professional ASP.NET - Chris Love's Official Blog Sign in | Join | Help

Chris Love's Official ASP.NET Blog

Chris Love's Helpful tips, tricks and pragmatic development knowledge for the ASP.NET world.
Add to Technorati Favorites


ASP Insider
Links of the Week

Thought I would bring this back again and see if it was popular or not this time around. So many things to link to now that MIX is done.

IE 8 Installation Information

Text and Data Compression - Kind of interesting that we only gain compression on the first iteration through.

IIS 7 AdminPack

OpenID implementation in C# and ASP.NET

Code Snippet Editor for Visual Basic 2008

Good Advice about setting up security accounts in MOSS - One of the most common questions I am asked when consulting on SharePoint is about setting up Admin accounts. Here is a good place to start for answers.

The Size of .NET - How big is it really?

How to LINQ Just about anything - Very cool!

TechEd Speakers - Nice Silverlight Application

Silverlight Live Search

SharePoint 2007 Installation Must Dos

Posted: Saturday, March 29, 2008 9:54 PM

by Chris Love

Comments

Phil Bolduc said:

I think the post 'Text and Data Compression' is slightly flawed. The input data is simply not long enough to show the benefits of compression. The web site http://www.maximumcompression.com/ shows how well a number of different algorithms and input data effect compression ratios. 3MB of standard English text can be compresed to 88.95% it's orginal size using WinRK 3.0.3. Using GZip as in the orginal post, the text can be compressed to 71.13% of it's original (2,988,578 to 862,950 bytes). Phil Bolduc - MSDN 2007 Code Awards - Team Developer Winner
# March 30, 2008 2:45 PM

Chris Love said:

Phil, that is a great URL, thanks for shareing it. The Text and Data Compression shows text being recompressed three times and that running it through multiple times may not actually keep shrinking things.
# March 30, 2008 6:48 PM

Phil Bolduc said:

I see, I must have misinterpreted the point of the article. Yes, I agree that a compressed stream of data cannot be recompressed to gain more compression. Most compression algorithms already take that into consideration when compressing the original stream. Obviously depending on the input stream, 1GB of english text can be compressed with gzip to about 296MB, and with the highest compression algorithm down to about 114MB. This is a definate saving. It is true, currently 1GB real data cannot be compessed down to kilobytes of data. Base-64 encoding does 'inflate' the data representation as it encodes 8-bits of data into 64 printable characters. A form of base-64 encoding is commonly used by email, usenet and other text based transports. Base-64 encoding better than hexidecimal encoding.
# March 31, 2008 11:05 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS