[jdom-interest] Speed!? JDOM vs DOM

Jason Hunter jhunter at collab.net
Tue Mar 6 06:38:49 PST 2001


Rolf Kluge wrote:
> 
> //
> // For building org.jdom.Document.
> //
> FileInputStream in = new FileInputStream(filename);
> SAXBuilder b;
> b = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
> Document jdoc = b.build(in);
> 
> /* This takes about 12 sec. */

It'd help if you buffered the input stream.

-jh-



More information about the jdom-interest mailing list