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/18 18:53:00 UTC

[jira] [Assigned] (GEODE-6670) GemFireCacheImpl.getCacheServers should not allocate a new ArrayList everytime it is called

     [ https://issues.apache.org/jira/browse/GEODE-6670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darrel Schneider reassigned GEODE-6670:
---------------------------------------

    Assignee: Darrel Schneider

> GemFireCacheImpl.getCacheServers should not allocate a new ArrayList everytime it is called
> -------------------------------------------------------------------------------------------
>
>                 Key: GEODE-6670
>                 URL: https://issues.apache.org/jira/browse/GEODE-6670
>             Project: Geode
>          Issue Type: Improvement
>          Components: core
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>            Priority: Major
>              Labels: performance
>
> The current implementation of GemFireCacheImpl.getCacheServers allocates a new ArrayList each time it is called if the cache has any cache servers that are not gateway receivers.
> We should instead maintain a list of all the non-gateway cache servers (like we currently do with the "allCacheServers" list).
> I saw the method called multiple times per pr put on a cache server.



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