Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2002

ByteArrayDataOutputStream: option to grow exponentially

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 3.6.8
    • 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().

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: