[jdom-interest] XMLOutputter patch

Brett McLaughlin brett at newinstance.com
Mon Nov 26 08:14:41 PST 2001


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

Just put this into CVS. I'd love to get some more people to test speed
improvements in their own apps.

Thanks
---
Brett McLaughlin            <http://www.newInstance.com>
Lutris Technologies         <http://www.lutris.com>
Author, "Java and XML" <http://www.oreilly.com/catalog/javaxml2>




More information about the jdom-interest mailing list