[
https://issues.apache.org/jira/browse/IGNITE-2508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15126257#comment-15126257
]
Vladimir Ozerov commented on IGNITE-2508:
-----------------------------------------
To get rid of this garbage we should avoid constant HashSet creation for
affinity IDs, but rather cache it.
> org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl#nodes(int,
> AffinityTopologyVersion) call are too costly
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IGNITE-2508
> URL: https://issues.apache.org/jira/browse/IGNITE-2508
> Project: Ignite
> Issue Type: Sub-task
> Components: general
> Reporter: Ilya Lantukh
> Assignee: Ilya Lantukh
> Fix For: 1.5.0.final
>
>
> New HashSet and ArrayList are instantiated on every call. Check if it is
> possible to optimize subsequent calls of this method if affinity assignment
> hasn't changed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)