Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] [Shannon: information ~ uncertainty] Ramificationsto XML data exchange?

From: Rick Marshall <rjm@-------.--->
To: Alaric Snell-Pym <alaric@---------.---.-->
Date: 10/11/2004 2:18:00 PM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent