Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

RE: [jdom-interest] Keeping an XML file in memory

Michael Kay

2007-08-01

Replies:

> I have an application where I need to keep a rather large
> (currently ~40MB, can get bigger) XML file in memory. This
> document is used exclusively as a source for multiple XSLT
> transformations.

Try the Saxon TinyTree. Unlike JDOM, this doesn't allocate a Java object for
each node. The structure is optimized for XPath access, and in particular,
for a read-only tree - JDOM and similar models have extra overhead because
of the need to support updating.

Michael Kay
http://www.saxonica.com/

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.