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: Thu, 21 Jul 2005 12:30:44 -0400

Wolfgang Hoschek wrote:

2. replace BufferedWriter used by Serializer with an unsynchronized custom version, enabling much better compiler inlining

I've confirmed this. It's a noticeable improvement. A version of this is now in CVS. It's a bit of a surprise. I thought synchronization wasn't supposed to have such a huge impact in modern VMs.

I experimented with several variations but I ended up committing basically what Wolfgang submitted modulo some refinements to fit my coding conventions that I don't think have any impact on the byte code. I'll look at the other changes as time permits. Thanks!

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