[
https://issues.apache.org/jira/browse/GEODE-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15439417#comment-15439417
]
ASF subversion and git services commented on GEODE-1803:
--------------------------------------------------------
Commit 9184b593ffca411e03b3c438d93e04225ef038df in incubator-geode's branch
refs/heads/develop from [~bschuchardt]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=9184b59 ]
GEODE-1803 Inefficient code in ClientMetadataService.getServerToFilterMap()
Created a Random to use in methods needing it. Replaced Collections.shuffle()
with random selection from an ArrayList.
> Inefficient code in ClientMetadataService.getServerToFilterMap()
> ----------------------------------------------------------------
>
> Key: GEODE-1803
> URL: https://issues.apache.org/jira/browse/GEODE-1803
> Project: Geode
> Issue Type: Bug
> Components: client/server
> Reporter: Bruce Schuchardt
> Assignee: Bruce Schuchardt
>
> This method is using Collections.shuffle(List).get(0) to select a random
> server when it would be a lot cheaper to pick a random element from the
> unshuffled list of server locations.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)