Hello:
Would it be possible to use these two object in multiple threads with
pre inited object?
I noticed about 30% performance difference if I use a
public static SAXReader reader = new SAXReader();
public void parseXML(){
Document document = reader.read(url);
}
this would be a lot of faster than create the reader instance for every
document.
public void parseXML(){
SAXReader reader = new SAXReader();
Document document = reader.read(url);
}
The same issue applies to the XPath expression object, too.
I got some errors when using them in multithree program so it appears that
the reader object is not stateless. The performance difference is quite
significant.
Thanks in advance.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user