Performance: UTF-8 writer byte[] and char[] buffers should be reused --------------------------------------------------------------------
Key: XALANJ-2368 URL: https://issues.apache.org/jira/browse/XALANJ-2368 Project: XalanJ2 Issue Type: Bug Components: Serialization Affects Versions: The Latest Development Code Reporter: Michael Glavassevich Every time a UTF-8 encoded document is serialized, a new instance of WriterToUTF8Buffered is created which in turn creates a 16 KB byte buffer and a 10 KB char buffer. When the serializer is used to serialize small (around 1 KB) documents the overhead of creating and garbage collecting these buffers is extremely large. Reusing the buffers would significantly improve the performance. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]