[jdom-interest] JDOM XML Outputter vs. JDOM serialization

Bradley S. Huffman hip at a.cs.okstate.edu
Sun Nov 10 18:23:04 PST 2002


Martin Schulz writes:

> Hello,
> 
> I am looking at comparing JDOM to/from XML byte stream versus JDOM
> (de)serialization.
> 
> For general architectural reasons I'd be inclined to pick the XML byte
> stream solution,
> But I also wouldn't be surprised if the XMLOutputter beat the serialized
> version, not speak of gzipped XML byte streams.
> 
> Anybody care to share their experience?

Using Dennis Sosnoski's XMLBench code (www.sosnoski.com) for timing, it
seems faster to use XMLOutputter/SAXBuilder for serialization then Java's
serialization mechinism which does alot of housekeeping to prevent cycles
(something a XML document never has).

Brad



More information about the jdom-interest mailing list