[jdom-interest] Keeping an XML file in memory

Michael Kay mike at saxonica.com
Wed Aug 1 01:47:39 PDT 2007


> 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/



More information about the jdom-interest mailing list