xsl-list
[Top] [All Lists]

Re: [xsl] Saxon performance difference in eClipse and App Server

2010-12-14 07:09:55
              /******* THIS IS WHERE MOST OF THE TIME TAKEN IS ********/
              transformer.transform(new DOMSource(doc), new
StreamResult(baos));

The usual advice to avoid DOMSource as that incurs a conversion cost
behind the scenes.

Instead, supply a StreamSource with either a StringReader (for a
String) or an InputStreamReader (for a ByteArrayInputStream).



-- 
Andrew Welch
http://andrewjwelch.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--