-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
Util.objectTo(Byte)Buffer() uses an underlying ByteArrayDataOutputStream which grows linearly. If we need to marshal a very large or complex object, linear growth will lead to many copies when growing the underlying buffer.
Solution: add an option to grow ByteArrayDataOutputStream exponentially. This will be used by default by Util.objectToByteBuffer().