[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

General comparisons of speed of xquery vs. xslt

Per Bothner per at bothner.com
Wed Apr 28 13:58:18 PDT 2004


xquery try interpreter
Michael Kay wrote:

> In XQuery the natural technique is
> always to pull, which means you end up doing more tree construction and 
> copying than is necessary.

Interesting.  I think of the natural technique is to "push".
Perhaps we're talking about different things.

To me "pull" means "output demand-driven" or as the funtional
language community calls it "lazy evaluation".  By analogy
"push" would be "input data-driven", which I agree is appropriate
for XSLT but not XQuery.

Perhaps we need a new term for the following, which we might call
"execution-driven":  The basic control flow of the "interpreter"
follows the "natural execution order" of the query.  E.g. you execute
a FLWOR by conceptually evaluting the input sequence, and then
for each item you execute the 'result' body with the given binding.
You execute a function call by executing each parameter, and then
executing the function body with the given bindings.  I think of
this as "push" because each time a sub-expression is evaluated
the result is pushed to its consumer.  I guess you might think
of this as "pull" because the choice which sub-expression to
execute is done by the parent expression, which pulls a result
from it.  However, the "pulling" is a complete result sequence,
not item-by-item as needed.  To reduce materializing sequence,
each item is pushed to a consumer.
-- 
	--Per Bothner
http://xquery.com/mailman/listinfo/talk   http://per.bothner.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
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-2011 All Rights Reserved.