]
Bela Ban resolved JGRP-2002.
----------------------------
Resolution: Done
ByteArrayDataOutputStream: option to grow exponentially
-------------------------------------------------------
Key: JGRP-2002
URL:
https://issues.jboss.org/browse/JGRP-2002
Project: JGroups
Issue Type: Enhancement
Reporter: Bela Ban
Assignee: Bela Ban
Fix For: 3.6.8
{{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()}}.