Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6991552

RFE: Internal arrays of ObjectInputStream/ObjectOutputStream not to grow exponentially

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • 6-pool
    • core-libs
    • None

      The size of the internal arrays of java.io.ObjectInputStream,
      and java.io.ObjectOutputStream gets doubled every time, when
      the size is no longer sufficient.
      While this may work fine for smaller arrays, it gets very
      costly for larger sizes:
      e.g.:
      assume current capacity is 512mb;
      if space for 512m+1 bytes is needed, it will grow the size
      of the internal arrays to the size of 1g in one single step.

            Unassigned Unassigned
            thlenz Thomas Lenz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: