Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
For a Message the Part's are cached and re-used but for a ChunkedMessage in say a getAll request a new HeapDataOutputStream object is created for each chunk. For a large message this leads to many objects being created on heap during a data transfer. HeapDataOutputStream objects should be cached in a way similar to is done with Part's. Note HeapDataOutputStream already has a reset() method to clear the object for re-use.