You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Darrel Schneider (JIRA)" <ji...@apache.org> on 2019/04/22 17:42:00 UTC

[jira] [Created] (GEODE-6687) org.apache.geode.internal.ByteArrayDataInput can be used in place of ByteArrayInputStream+DataInputStream

Darrel Schneider created GEODE-6687:
---------------------------------------

             Summary: org.apache.geode.internal.ByteArrayDataInput can be used in place of ByteArrayInputStream+DataInputStream
                 Key: GEODE-6687
                 URL: https://issues.apache.org/jira/browse/GEODE-6687
             Project: Geode
          Issue Type: Improvement
          Components: serialization
            Reporter: Darrel Schneider


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.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)