[jboss-jira] [JBoss JIRA] (JGRP-2002) ByteArrayDataOutputStream: option to grow exponentially
Bela Ban (JIRA)
issues at jboss.org
Wed Jan 13 06:21:00 EST 2016
Bela Ban created JGRP-2002:
------------------------------
Summary: 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()}}.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list