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/24 16:21:00 UTC
[jira] [Updated] (GEODE-6702) InternalDistributedMember equals
could be optimized
[ https://issues.apache.org/jira/browse/GEODE-6702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Darrel Schneider updated GEODE-6702:
------------------------------------
Labels: performance (was: )
> 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
>
> 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)