TIBCOSoftware / genxdm

GenXDM: XQuery/XPath Data Model API, bridges, and processors for tree-model neutral access to XML.
http://www.genxdm.org/
9 stars 4 forks source link

XPath implementation might explore compiling the execution of an XPath expression to byte-code, and other optimizations #85

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Right now, our XPath implementation traverses a data structure much like a 
syntax tree to evaluate its results.

In practice, an XPath expression can be compiled directly into a set of 
function executions (with a few if/else statements mixed in).

Further, those function executions follow the form "get all child nodes with 
the name prefix:localname". Those actually requests 
(model.getChildElementByName()) can be compiled directly to the underlying 
model.

For a bonus addition, the XPath evaluation could be rewritten on top of the 
"Cursor" model, at which point it could be readily applied to Java objects.... 
and the meaning could be compiled down directly to Java operations on Java 
objects.

Well, maybe most of the above. We should see what we can push on here.

Original issue reported on code.google.com by eric%tib...@gtempaccount.com on 7 May 2012 at 2:15

GoogleCodeExporter commented 9 years ago
Doesn't seem high priority, so moving post-1.0.

Original comment by aale...@gmail.com on 26 Jul 2012 at 8:02

GoogleCodeExporter commented 9 years ago
Changed owner

Original comment by eric%tib...@gtempaccount.com on 6 May 2014 at 9:45