Lists Home |
Date Index |
- Subject: RE: [xml-dev] Hostility to "binary XML" (was Re: [xml-dev] XML 2004 weblog items?)
- From: "Derek Denny-Brown" <firstname.lastname@example.org>
- Date: Mon, 22 Nov 2004 13:09:06 -0800
- Cc: <email@example.com>
- Thread-index: AcTQ1Nv3QdAVuD3fTxKuPkYx7fwCFwAAJd2Q
- Thread-topic: [xml-dev] Hostility to "binary XML" (was Re: [xml-dev] XML 2004 weblog items?)
It just isn't possible to be even a single order of magnitude faster in
the general case. An alternate encoding for XML can provide gains in 2
ways: file size, or parser CPU usage. I've never seen a format which
provides significant file size gains without high CPU cost (although you
can sometimes play games and push all the CPU cost to the writer, so
that the reader is cheap, for example). Most of the CPU cost of parsing
is related to the abstract model of XML, not the text parsing: Duplicate
attribute detection, character checking, namespace resolution/checking.
Every binary-xml implementation I have researched which improves CPU
utilization does so by skipping checks such as these. At that point you
are no longer talking about XML.
Note the key constraint in my opening sentence: "in the general case".
Some scenarios clearly benefit from an alternate encoding, but different
scenarios demand different trade-offs. I have yet to hear of any
proposed solution which successfully balances the different demands.
I'm not sure it is possible, without creating a homunculus.
> -----Original Message-----
> From: DuCharme, Bob (LNG-CHO) [mailto:firstname.lastname@example.org]
> Sent: Monday, November 22, 2004 12:49 PM
> To: 'Robin Berjon'; Michael Champion
> Cc: email@example.com
> Subject: RE: [xml-dev] Hostility to "binary XML" (was Re: [xml-dev]
> 2004 weblog items?)
> Robin Berjon wrote:
> >Michael Champion wrote:
> >> The 'binary XML' stuff got a lot less hostile reception than I
> >> expected. Is the world ready to hear that XML 1.x text
> >> is not suitable for wireless applications, is this old news, or
> >during a recent presentation I tried to outrage the audience with
> >some over-the-top pro-binary XML positions (expecting to use the
> >push-back to moderate them)
> And in Mike's talk, he did not do this. He put everything I had heard
> context, including counter-arguments to the various arguments, so
> little reason to get hostile. For example, there was his point
> own or quoting of other people) that just because XML doesn't suit a
> particular class of applications well doesn't necessarily mean that
> should be twisted inside out to accommodate that class of apps;
> means that that class of apps should look elsewhere for its needs.
> His answer to my question at the end convinced me to maintain my
> level of skepticism: apparently all of the talk of alternative XML
> being much more efficient than text XML are based on consistent use of
> document classes for each test, so this consistency means the kind of
> redundancy that makes compression much easier.
> When someone prototypes an encoding that is orders of magnitude more
> efficient for arbitrary XML, which Mike said that no one had done yet,
> more seriously consider the possibility that a binary XML standard
> worth the trouble.
> (Mike, please correct me if I misremember. And it was nice to finally
> Bob DuCharme www.snee.com/bob <bob@
> snee.com> weblog on linking-related topics:
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> The list archives are at http://lists.xml.org/archives/xml-dev/
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>