Andriy Kharchuk commented on Improvement HHH-7835

ByteArrayOutputStream class internally still does redundant copying by calling Arrays.copyOf() in write(byte b[], int off, int len).

Default internal buffer size in ByteArrayOutputStream is just 32 bytes. Unless you make initial buffer size large everything will be similar to existing implementation. However, if you set buffer size to some larger number, say to 128k, it might be comparable to suggested implementation. This has to be tested.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira