[jdom-interest] performance of xml parsing using jdom

Brett McLaughlin brett at newInstance.com
Mon Apr 16 10:17:44 PDT 2001


----- Original Message -----
From: "Hong Zhang" <hzhang at Envive.com>
To: <jdom-interest at jdom.org>
Sent: Monday, April 16, 2001 12:05 PM
Subject: [jdom-interest] performance of xml parsing using jdom


>
> Hi,
> I am working on a project where a large amount of xml files need to be
> parsed in a very short time (50-100 files per second). I believe I have
two
> choices with jdom: create a new SAXBuilder for each xml file, or use a
pool
> of SAXBuilder objects. Which way is better in terms of memory usage and
> speed? Thanks in advance

Huh? What's wrong with

SAXBuilder builder = new SAXBuilder();
builder.build(file1);
builder.build(file2);
// etc.

Maybe I missed something?

-Brett

> Hong Zhang
> Envive Corp.
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com




More information about the jdom-interest mailing list