Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-6687

org.apache.geode.internal.ByteArrayDataInput can be used in place of ByteArrayInputStream+DataInputStream

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0
    • serialization

    Description

      A number of places in geode wrap a byte array in a ByteArrayInputStream which then is given to a DataInputStream. Because the DataInputStream always allocates some byte arrays and char arrays (even if they will not be used) this can generate a good deal of extra garbage.

      Geode has an existing class, org.apache.geode.internal.ByteArrayDataInput, that can be used to replace a ByteArrayInputStream+DataInputStream and will generate less garbage.

       

      Attachments

        Issue Links

          Activity

            People

              dschneider Darrel Schneider
              dschneider Darrel Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m