You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2016/02/01 14:48:39 UTC

[jira] [Commented] (IGNITE-2508) org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl#nodes(int, AffinityTopologyVersion) call are too costly

    [ 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)