[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [Shannon: information ~ uncertainty] Ramificationsto XML d


entropy of a message
Alaric Snell-Pym wrote:

> Rick Marshall wrote:
>
>> xml messages compress well because the tags as a group in a message 
>> contain very little information. the message content however contains 
>> a lot of information and doesn't compress as well, hence it doesn't 
>> matter if it's binary or ascii - the information content is high and 
>> therefore the bits to represent it will be high. most arguments about 
>> binary/ascii representation of numbers look at specifics and ignore 
>> the principle.
>
>
> Bear in mind that although XML compresses well, it doesn't end up 
> smaller than the result of compressing a compact binary 
> representation, in general.
>
> As you say, you still have to communicate the underlying information, 
> but with XML you also have to communicate the fact that the tags were 
> there, that the number was in fact a number and not text, and so on.
>
> Eg, the number 53 can be encoded in binary as a single byte. In ASCII, 
> it's two bytes, each of which could take any value. The compressor 
> will need to communicate the fact that it was the number 53, when it 
> could have been the string "UK".
>
> ABS
>
actually modern compressors don't know about the representation and 
don't much mind. they actually work on the entropy of the message and 
the message as a bit stream - ie they don't know there are tags, ascii 
data, binary, data, schema etc. there's not room to go into it here but 
they will compress a message fairly consistently based on the entropy of 
the message, not the representation. different algorithms are marginally 
better than others (bzip2 vs gzip eg), but seem to give proportionally 
similar results.

further info from http://datacompression.info/Compression.shtml


begin:vcard
fn:Rick  Marshall
n:Marshall;Rick 
email;internet:rjm@z...
tel;cell:+61 411 287 530
x-mozilla-html:TRUE
version:2.1
end:vcard


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.