You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Dick Cavender (Jira)" <ji...@apache.org> on 2019/09/26 18:03:07 UTC
[jira] [Closed] (GEODE-6702) InternalDistributedMember equals could
be optimized
[ https://issues.apache.org/jira/browse/GEODE-6702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dick Cavender closed GEODE-6702.
--------------------------------
> 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
> Assignee: Darrel Schneider
> Priority: Major
> Labels: performance
> Fix For: 1.10.0
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)