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

Re: Request: Techniques for reducing the size of XML instances

  • From: Olivier DUBUISSON <Olivier.Dubuisson@f...>
  • To: "HUGHES,MARK (Non-HP-FtCollins,ex1)" <mark_hughes@n...>
  • Date: Fri, 27 Jul 2001 09:36:35 +0200

xml message size benchmarks
"HUGHES,MARK (Non-HP-FtCollins,ex1)" wrote:
> 
> >From: Michael Brennan [mailto:Michael_Brennan@a...]
> >Plain old vanilla gzip compression works great. If transmitting XML over
> HTTP
> >(a very common use case), the HTTP spec explicitly permits compression of
> >content. You can include "Content-Encoding: gzip" as an HTTP header, and
> >achieve a high-level of compression (80%-90% in my experience) while still
> >fully conforming to the HTTP spec. The only downside is that many XML
> >messaging toolkits may not properly support this.
> 
>   Seconded.  gzip is simple, fast, ubiquitous, standard, and gives you far
> better compression than any binary substitution scheme ever will.

Tests that we have performed show that the PER encoding rules of ASN.1
<http://asn1.elibel.tm.fr/xml/#schema-mapping> gives (on a lot of cases, and
particularly on small instances such as WML) better compression.
I promissed to put benchmarks and measure comparisons on the website but
had no time to do it :-(

>   After all, gzip compresses both the tags *and* the content, and can
> identify repeated sequences of <tag>content</tag>.  Binary encodings
> can only compress the tags...

It seems you're equating binary encodings with Binary XML.
There are binary encodings (such as PER) which produce a compact encoding
for the data (and which do not really encode the tags).
When the types are constrained (or when the constraints defined in an XML
Schema are reused on the ASN.1 side), the encoding is even more compact.
-- 
Olivier DUBUISSON
france telecom R&D
     _                 DTL/MSV - 22307 Lannion Cedex - France
    ( )           tel: +33 2 96 05 38 50 - fax: +33 2 96 05 39 45
    /.\/               --------------------------------------
    \_/\               Site ASN.1 : http://asn1.elibel.tm.fr/

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.