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

Re: No XML Binaries? Buy Hardware

  • From: Elliotte Harold <elharo@m...>
  • To: derek denny-brown <zuligag@g...>
  • Date: Fri, 23 Feb 2007 14:49:08 -0500

Re:  No XML Binaries? Buy Hardware
derek denny-brown wrote:
> Noah comments remind me of a test I did a while back.  I had a toy
> object serializer that I was playing with and was doing some
> performance measurements.  I wish I had the code still, but I found
> that a surprisingly larger portion of the runtime was string compares.

String operations will eat you alive if you aren't careful. This is 
hardly unique to XML. There's a huge amount of naive string handling 
code out there in production today. Seems like every third Daily WTF 
involves strings, and I notice that a lot of my students intuitively 
turn to strings at the first hint of trouble. For instance, when I 
assign them the problem of calculating a hashCode for an object, quite a 
few of them are going to mash everything together in one big string and 
then call hashCode on it. Strings are just too attractive as a general 
purpose data type, I guess.

I suspect (though I haven't proven) that we may well be API limited on 
some APIs like SAX and XOM. I don't think we've hit the limits of parser 
performance yet, but I do think if we want another factor of two we're 
going to need to start designing the API for performance rather than 
convenience. I'm not at all convinced we actually need that extra factor 
of two, though.

-- 
Elliotte Rusty Harold  elharo@m...
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.