[
http://jira.codehaus.org/browse/JAXEN-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=196655#action_196655 ]
Aleksander Adamowski commented on JAXEN-88:
-------------------------------------------
Hasn't JAXEN-31 addressed this?
> Early termination with positional predicates
> --------------------------------------------
>
> Key: JAXEN-88
> URL:
http://jira.codehaus.org/browse/JAXEN-88> Project: jaxen
> Issue Type: Improvement
> Components: core
> Reporter: Elliotte Rusty Harold
> Fix For: 2.0
>
>
> Michael Kay describes a Saxon optimization in this article on developerWorks:
>
http://www-106.ibm.com/developerworks/library/x-xslt2/> "A predicate such as para[position() <= 3] selects the first three <para> children of the current node. It is not necessary to apply this predicate explicitly to every <para> element to see if it is true, since processing can stop after the third node."
> As always with this sort of stuff, we need to carefully benchmark to insure we don't spend more time doing the optimization than it actually saves.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email