[jdom-interest] XPath support
bob mcwhirter
bob at werken.com
Thu Aug 29 06:17:20 PDT 2002
On Thu, 29 Aug 2002, Paul Chapman wrote:
> 1. The navigator is not implemented for performance.
It does the best it can. :)
> 2. JDOM is inherently slow - the performance stats do seem to
> imply this, but Jaxen XPath/JDOM is slower than JDOM alone
> for a simple search.
Yah, that too.
> 3. Jaxen XPath is intrinsicly not suited to work with a DOM (XPP
> is a stream-like interface, reading one node at a time).
I don't understand this at all. Jaxen -only- works on DOMesque
types of object trees.
> Did the JDOM team write the navigator for Jaxen?
No, I did.
> Could JDOM be enhanced to support it better?
It may be ugly, but if they could tag their nodes with an numeric
node-type, we could rid ourselves of lots of instanceof checks in the
Navigator.
Also, someone with a profiler might could find the hotspots in the
core xpath engine.
-bob
More information about the jdom-interest
mailing list