ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Fedotov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-7931) Wrong arguments for `keys` in DataStreamerImpl
Date Tue, 13 Mar 2018 11:13:00 GMT

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

Ivan Fedotov updated IGNITE-7931:
---------------------------------
    Description: 
When creating
{code:java|title=DataStreamerImpl.java}
{code:java}
keys = new GridConcurrentHashSet<>(entries.size(), U.capacity(entries.size()), 1);{code}
[1],[2] result of `U.capacity` is passed as `loadfactor` value. When loadFactor == U.capacity,
initial size of table is 1. This leads to performance penalty due to rehashing of internal
map.

[1][https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/processors/datastreamer/DataStreamerImpl.java#L633]

[2][https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/processors/datastreamer/DataStreamerImpl.java#L574]

 

  was:
When creating

{code: title=DataStreamerImpl.java}
{code:java}
keys = new GridConcurrentHashSet<>(entries.size(), U.capacity(entries.size()), 1);{code}
[1],[2] result of `U.capacity` is passed as `loadfactor` value. When loadFactory == U.capacity,
initial size of table is 1. This leads to performance penalty due to rehashing of internal
map.

[1][https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/processors/datastreamer/DataStreamerImpl.java#L633]

[2][https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/processors/datastreamer/DataStreamerImpl.java#L574]

 


>  Wrong arguments for `keys` in DataStreamerImpl
> -----------------------------------------------
>
>                 Key: IGNITE-7931
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7931
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Ivan Fedotov
>            Assignee: Ivan Fedotov
>            Priority: Trivial
>             Fix For: 2.5
>
>
> When creating
> {code:java|title=DataStreamerImpl.java}
> {code:java}
> keys = new GridConcurrentHashSet<>(entries.size(), U.capacity(entries.size()),
1);{code}
> [1],[2] result of `U.capacity` is passed as `loadfactor` value. When loadFactor == U.capacity,
initial size of table is 1. This leads to performance penalty due to rehashing of internal
map.
> [1][https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/processors/datastreamer/DataStreamerImpl.java#L633]
> [2][https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/processors/datastreamer/DataStreamerImpl.java#L574]
>  



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

Mime
View raw message