[jdom-commits] CVS update: jdom/src/java/org/jdom/output
bmclaugh at cvs.jdom.org
bmclaugh at cvs.jdom.org
Mon Nov 26 06:53:29 PST 2001
Date: Monday November 26, 2001 @ 14:53
Author: bmclaugh
Update of /home/cvspublic/jdom/src/java/org/jdom/output
In directory www.nmemonix.com:/tmp/cvs-serv13018/src/java/org/jdom/output
Modified Files:
XMLOutputter.java
Log Message:
Several changes put in place here:
* build.xml changed so that the 'fixcrlf' task now uses the 'eol' attribute
instead of the now-deprecated (by Ant) 'cr' attribute.
* Patch to Document.java from Alex Rosen to ensure that DocTypes that are "un"-
set (by setting a new DocType) have their reference to a parent Document set
to null.
* Patch to XMLOutputter.java, also from Alex Rosen, to improve performance of
XMLOutputter. Here's the note from Alex:
I did a little profiling today. Using Dennis' benchmark, I was able to speed
up XMLOutputter by 20% by using a BufferedWriter. Yes, you have to buffer
both the writer and the stream for the best performance.
I got another 15-20% speedup by optimizing escapeAttributeEntities() and
escapeElementEntities() for the common case where no escaping is actually
necessary. When it is necessary, the new code should be about as fast, I
think.
===================================================================
File: no file XMLOutputter.java Status: Needs Checkout
Working revision: 1.66 Mon Nov 26 14:53:29 2001
Repository revision: 1.66 /home/cvspublic/jdom/src/java/org/jdom/output/XMLOutputter.java,v
Existing Tags:
jdom_1_0_b7 (revision: 1.62)
jdom_1_0_b6 (revision: 1.35)
start (revision: 1.1.1.1)
jdom (branch: 1.1.1)
More information about the jdom-commits
mailing list