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

RE: XML Schema: "Best used with the ______ tool"

  • From: "Michael Kay" <mike@s...>
  • To: "'Boris Kolpackov'" <boris@c...>
  • Date: Fri, 28 Nov 2008 15:29:23 -0000

RE:  XML Schema: "Best used with the ______ tool"
In the example I mentioned 
> in my previous email, even if the XSLT/XQuery processor can 
> figure out at the query compile time (based on the schema 
> information) that the 'people' element can only contain the 
> 'person' element and skip the element name check (I don't 
> know if there are any production implementations that do 
> this), you will presumably still need a map lookup to get to 
> the "age" attribute.
> I don't think this can be anywhere close to a single direct 
> memory access in case of data binding.

I think you'll find it's close enough. As far as Saxon is concerned, I put
further optimization of this kind of thing (for example, allocating required
attributes to fixed positions and accessing them by direct offset) on the
back burner some years ago because profiling showed that the serial search
for an attribute simply wasn't showing up on the radar. It could be done if
it was necessary, but it's not necessary.
> 
> 
> I agree with Dennis here in that XQuery can be usable when 
> you need to access a small subset of an XML document. 
> However, when one needs to access most of the data, or, 
> worse, access the same data many times, data binding will 
> have speed/memory advantage.

Evidence please! I don't see any reason why it should.

(There are still people who maintain that coding in assembler is faster than
in C, or that coding in C is faster than in Java. All the evidence is that
there are very few people with the skills in the lower-level language to
beat the optimizers for the higher-level language. It can be done if you try
hard enough, but not by the average programmer.)
> 
> Then there is the whole aspect of interfacing with the rest 
> of the world. Assembling text queries from bits and pieces 
> that come from different sources and then unpacking the 
> results for further processing does not sound like something 
> that is easy to use.
> 
Sounds a lot easier than coding it in Java.

Michael Kay
http://www.saxonica.com/



[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.