Details
-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
Description
When marshaling object (nested too), most of the code has the following pattern
ByteArrayOutputStreamEx buffer = new ByteArrayOutputStreamEx(); TagWriterImpl nestedCtx = TagWriterImpl.newInstance(ctx, buffer); marshallerDelegate.marshall(nestedCtx, null, t);
The TagWriterImpl class has an internal byte[] to minimize the invocations in the OutputStream. But, in the scenario above, there is no penailty to invoke the ByteArrayOutputStreamEx multiple times.
Attachments
Issue Links
- relates to
-
IPROTO-217 Reuse buffer when writing a nested message
- Closed