[jdom-interest] XMLOutputter patch

Dennis Sosnoski dms at sosnoski.com
Mon Nov 26 10:52:48 PST 2001


Sounds great on the speed improvements! Any idea when there'll be a new 
beta release? I'm way behind schedule on publishing the next set of test 
results and want to get these updated soon.

  - Dennis

Brett McLaughlin wrote:

>>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>
>
>_______________________________________________
>To control your jdom-interest membership:
>http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
>





More information about the jdom-interest mailing list