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

ByteArrayDataOutputStream: option to grow exponentially

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 3.6.8
    • None
    • None

    Description

      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().

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: