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

RE: XML Performance in a Transacation

  • To: "'Rick Marshall'" <rjm@z...>
  • Subject: RE: XML Performance in a Transacation
  • From: "Michael Kay" <mike@s...>
  • Date: Sun, 26 Mar 2006 15:54:12 +0100
  • Cc: <xml-dev@l...>
  • In-reply-to: <44269384.3060308@z...>
  • Thread-index: AcZQzme0EsXcs7uaR122Etea5ZurkgAE1wBA

transacation level
> i'm raising the issue simply because it should be hard, not easy, for 
> this to happen. 

I'm not sure how one could design a language in which it is possible but
difficult to write nested loops.

The other angle on this is that if you provide a high-level construct for
doing something complex, the system has more chance of optimizing it than if
you make the programmer code it by hand. For example, there were those who
argued that XQuery shouldn't offer the following-sibling axis because it's
hard to optimize. In answer to that: firstly, the efficiency of
following-sibling depends greatly on the internal data structures used to
implement the data model; and secondly, it's very much easier to optimize
$x/following-sibling::y than to optimize the construct the user would
otherwise be forced to write, $x/../y[.>>$x].

What is true, of course, is that high-level declarative languages like XSLT,
XQuery, SQL, and Prolog create the situation that it's difficult for
programmers to predict the performance of their programs without detailed
knowledge of the strategies used by the optimizer. For example, you have no
way of knowing from the language spec alone whether following-sibling::x[1]
will take constant time, or time proportional to the number of following
siblings (or potentially even something worse). I don't think this means
that such languages are a bad idea.

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



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.