xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roytman, Alex" <roytm...@peacetech.com>
Subject XMLSerializer performance
Date Tue, 09 May 2000 20:37:51 GMT

> Hello,
> 
> What is the most efficient way (in terms of speed and memory) to serialize
> SAX or DOM?
> I did some performance tests and was very surprised that the XMLSerializer
> showed the pretty poor results: 
> 
> Actual time does not matter I would like to show relative times
> 
> SAX ->	XMLSerializer	-> XML File	5 sec
> SAX ->	Xalan serializer	-> XML File	2 sec 
> SAX ->	Xalan stylesheet	-> XML File	6 sec 
> Oracle DOM print()	-> XML File	3 sec
> Oracle Stylesheet	-> XML File	9 sec 
> 
> As you can see XMLSerializer is almost as slow as applying a Xalan
> stylesheet and 2.5 times slower than Xalan serializer and almost twice as
> slow as Oracle serializer. This is with INDENT OFF.
> 
> May be did something wrong or I suppose to use some other means to
> serialize my SAX events. In my case I do not need pretty serialization or
> serialization to HTML or something else - I need PERFORMANCE. Serializing
> SAX or DOM is a fundamental operation - we need to get the best
> performance we can. I would be grateful if you can suggest any other means
> of serializing SAX (DOM)
> I also read somewhere that Xalan serializer will be deprecated and
> replaced with org.xml.serializer package. Is it true?
> 
> Thank you in advance
> 
> Alex Roytman
> Peace Technology, Inc.
> (301) 206-9696
> 
> 

Mime
View raw message