[ http://issues.apache.org/jira/browse/XALANJ-1689?page=all ]
Brian Minchau updated XALANJ-1689: ---------------------------------- Version: Latest Development Code (was: 2.5Dx) > redirect uses unbuffered FileOutputStream -> bad performance when accessing > networked Windows Shares > ---------------------------------------------------------------------------------------------------- > > Key: XALANJ-1689 > URL: http://issues.apache.org/jira/browse/XALANJ-1689 > Project: XalanJ2 > Type: Bug > Components: Xalan-extensions > Versions: Latest Development Code > Environment: Operating System: Windows XP > Platform: PC > Reporter: Christian Roth > Assignee: Xalan Developers Mailing List > > The code for the redirect extension creates an unbuffered FileOutputStream. > This results in very > bad performance when accessing networked Windows shares. > For a test, I patched the source in org.apache.xalan.lib.Redirect.java in > line 449 to read: > transformer.createSerializationHandler(new StreamResult( new > java.io.BufferedOutputStream( > ostream )), format); > i.e. I wrapped the FileOutputStream with a BufferedOutputStream. > An example I conducted resulted in the following performance figures: > Xalan 2.5.1 (no patch): 33s > Xalan 2.5.1 (w/ my patch applied): 2s > In these cases, the destination for redirect was a networked Windows share, > not a local drive. The > wrapping seems to dramatically decrease communication overhead with the > networked destination > machine. > I suggest wrapping FileOutputStream()s created by redirect and possible other > locations in Xalan's > code by a BufferedXXX() implementation to improve performance over networks. > [Disclaimer: The patch above was only done here locally to investigate the > issue, it is not intended > to be the final patch applied as I am not fluent with Xalan internal code > structure and flow path.] > -- Christian -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]