Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] More Serializer performance patches

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <whoschek AT lbl.gov>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] More Serializer performance patches
  • Date: Tue, 11 Oct 2005 14:54:52 -0400

Wolfgang Hoschek wrote:
Here are some more Serializer performance patches against xom-1.1-CVS

1. improved UnicodeWriter.{writePCData, writeMarkup, writeAttributeValue) for strings that contain both portions that need - escaping and others that do not need escaping. Example: foo bar hello world foo bar
2. replace BufferedWriter used by Serializer with an unsynchronized custom version, enabling much better compiler inlining
3. revert Serializer.writeNamespaceDeclarations to previous impl (the recently changed CVS impl shows a 25% degradation)

Results: 1.5 - 2x faster for a wide range of documents
All tests pass after applying the patches.


By any chance did you get any numbers on the effects of just replacing BufferedWriter with an unsynchronized version, independent of the other changes? I'm considering whether to mention this possibility in the next edition of Java I/O.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page