xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] More Serializer performance patches
- 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
-
Re: [XOM-interest] More Serializer performance patches,
Elliotte Harold, 10/11/2005
-
Re: [XOM-interest] More Serializer performance patches,
John.Cowan, 10/11/2005
-
Re: [XOM-interest] More Serializer performance patches,
Elliotte Harold, 10/11/2005
-
Re: [XOM-interest] More Serializer performance patches,
Steve Loughran, 10/11/2005
- Re: [XOM-interest] More Serializer performance patches, Elliotte Harold, 10/11/2005
-
Re: [XOM-interest] More Serializer performance patches,
Steve Loughran, 10/11/2005
-
Re: [XOM-interest] More Serializer performance patches,
Elliotte Harold, 10/11/2005
- Re: [XOM-interest] More Serializer performance patches, Wolfgang Hoschek, 10/12/2005
-
Re: [XOM-interest] More Serializer performance patches,
John.Cowan, 10/11/2005
Archive powered by MHonArc 2.6.24.