Darrel Schneider created GEODE-6702:
---------------------------------------

             Summary: InternalDistributedMember equals could be optimized
                 Key: GEODE-6702
                 URL: https://issues.apache.org/jira/browse/GEODE-6702
             Project: Geode
          Issue Type: Improvement
          Components: core
            Reporter: Darrel Schneider


In a partitioned region client/server put benchmark, I saw lots of calls to 
InternalDistributedMember equals. Each call was allocating two byte arrays.

This is because equals is implemented by calling compareTo, and compare needs 
to get the InetAddress as a byte array. But if instead it just wanted to know 
if they were equal, then it could instead call InetAddress.equals.

I have a prototype fix for this in: 

4298ad678f3bc7621b6a566442e358f1ed34030a



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

Reply via email to