[ 
https://issues.apache.org/jira/browse/IGNITE-9890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16662201#comment-16662201
 ] 

ASF GitHub Bot commented on IGNITE-9890:
----------------------------------------

GitHub user vldpyatkov opened a pull request:

    https://github.com/apache/ignite/pull/5060

    IGNITE-9890 Refactor CachePartitionPartialCountersMap#fromCountersMap…

    …, no need to sort partitions any time it called.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gridgain/apache-ignite ignite-9890

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ignite/pull/5060.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5060
    
----
commit d28c62f134807da102a31689c383f7ae5fe5e8c3
Author: vd-pyatkov <vpyatkov@...>
Date:   2018-10-24T12:07:15Z

    IGNITE-9890 Refactor CachePartitionPartialCountersMap#fromCountersMap, no 
need to sort partitions any time it called.

----


> Refactor CachePartitionPartialCountersMap#fromCountersMap, no need to sort 
> partitions any time it called.
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-9890
>                 URL: https://issues.apache.org/jira/browse/IGNITE-9890
>             Project: Ignite
>          Issue Type: Improvement
>          Components: general
>    Affects Versions: 2.6
>            Reporter: Stanilovsky Evgeny
>            Assignee: Vladislav Pyatkov
>            Priority: Minor
>             Fix For: 2.8
>
>
> {code:java}
> CachePartitionPartialCountersMap#fromCountersMap{code}
> we need to store sorted partitions for 
> {code:java}
> partitionIndex(int partId) {return Arrays.binarySearch{code}
> method. Hope need some refactoring here, no need to sort it any time it 
> called, we just need to store already sorted collection here.



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

Reply via email to