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

Re: Microsoft FUD on binary XML...


base 10 decoder
Bob Wyman wrote:

> 	Another thing to consider is the potential cost in converting
> data to address things like "endian" concerns. If you have to flip the
> bits in every number you get and you have many numbers, this can get
> expensive.

Hmmm... nowhere near as expensive as parsing those numbers from base 10 
ASCII :-) A 32-bit endian swap in x86 assembly is not many instructions 
- can't remember how many offhand, but not many. And it will execute in 
constant time, whereas a base 10 decoder will take time linearly 
dependant on the number of digits in the number :-)

 > Similarly, converting from a "standard" floating point
> representation to some different representation supported by your
> machine or language might be expensive.

That has more scope for expense but, again, I can't see it ever being 
worse than converting from a base 10 ASCII encoding of the same number.

 > Also, if it turns out that
> your application is primarily concerned with large strings, then a
> binary format can deliver very disappointing results. 

Yep, if we enclosed this entire email in <e> and </e> to make it into 
XML, then the PER equivelant would be something like a 2-byte 
variable-length integer encoding the message length followed by the text 
of the message - a meager saving of 5 bytes out of a couple of K.

> 
> 		bob wyman
> 

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.