ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [27/50] incubator-ignite git commit: # ignite-47 Set correct default load factor to GridLeanMap. (cherry picked from commit 8d0d86f)
Date Thu, 12 Mar 2015 11:22:29 GMT
# ignite-47 Set correct default load factor to GridLeanMap.
(cherry picked from commit 8d0d86f)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/e5569512
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/e5569512
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/e5569512

Branch: refs/heads/ignite-410
Commit: e5569512eda93dd0d1b7cd560f3a510d9d907e27
Parents: c55c24c
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Sat Mar 7 17:19:46 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Wed Mar 11 18:33:59 2015 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/ignite/internal/util/GridLeanMap.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e5569512/modules/core/src/main/java/org/apache/ignite/internal/util/GridLeanMap.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/GridLeanMap.java b/modules/core/src/main/java/org/apache/ignite/internal/util/GridLeanMap.java
index 2f98200..74631a4 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/GridLeanMap.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/GridLeanMap.java
@@ -73,7 +73,7 @@ public class GridLeanMap<K, V> extends GridSerializableMap<K, V>
implements Clon
         else if (size == 5)
             map = new Map5<>();
         else
-            map = new LeanHashMap<>(size, 1.0f);
+            map = new LeanHashMap<>(IgniteUtils.capacity(size), 0.75f);
     }
 
     /**


Mime
View raw message