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

Re: Microsoft FUD on binary XML...


binary xml per
Jeff Lowery wrote:
> I'm sure this has been asked before, but I missed it:
>  
> What can be achieved by binary XML that can't be similarly achieved 
> using well-known text compression algorithms?

Do you mean gzip and friends?

If so, then the answer is "reduced complexity" and "improved 
performance"! gzip is a fairly complex algorithm, easy to get wrong, 
hard to understand, and it uses a lot of buffer space (especially when 
compressing). Plus it's quite CPU intensive.

Many have pointed out that gzipping XML produces a smaller file than 
just PER-encoding or something like that - this is certainly the case if 
the XML in question is more text than tags, since in PER the text would 
be represented just the same as in XML, in general, and all that is 
gained is the conversion of tags and structured data to compact forms. 
However, gzipped PER will generally be even smaller than gzipped XML; so 
if you have the spare resources at each end to gzip everything then you 
can regain some of the time performance you lost due to gzipping by 
using something like PER instead of XML as the stuff you compress.

So to conclude - byte stream compressors like gzip, bzip, and so on gain 
you space efficiency in transit at the cost of time and space efficiency 
at the endpoints. But byte stream compression sits at a lower level than 
XML, PER, XDR, and so on - it can be equally well applied to all of 
them, although formats with less redundant information in tend to 
produce smaller compressed versions (don't be fooled by the fact that 
the compression ratio of highly redundant data is high ;-)

ABS


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.