ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [07/15] ignite git commit: debugging slowdowns
Date Thu, 26 Nov 2015 18:50:25 GMT
debugging slowdowns


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

Branch: refs/heads/ignite-1537
Commit: 5407ea692ce1a74604f9314e70c6888c384e8ae9
Parents: 1eaa8c9
Author: Yakov Zhdanov <yzhdanov@gridgain.com>
Authored: Thu Nov 26 16:16:52 2015 +0300
Committer: Yakov Zhdanov <yzhdanov@gridgain.com>
Committed: Thu Nov 26 16:16:52 2015 +0300

----------------------------------------------------------------------
 .../cache/distributed/dht/GridPartitionedSingleGetFuture.java   | 5 +----
 .../processors/cache/distributed/near/GridNearGetRequest.java   | 3 ++-
 2 files changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/5407ea69/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridPartitionedSingleGetFuture.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridPartitionedSingleGetFuture.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridPartitionedSingleGetFuture.java
index f6b99d1..99cf210 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridPartitionedSingleGetFuture.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridPartitionedSingleGetFuture.java
@@ -19,7 +19,6 @@ package org.apache.ignite.internal.processors.cache.distributed.dht;
 
 import java.util.Collection;
 import java.util.Collections;
-import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.UUID;
@@ -275,9 +274,7 @@ public class GridPartitionedSingleGetFuture extends GridFutureAdapter<Object>
im
                     cctx.deploymentEnabled());
             }
             else {
-                LinkedHashMap<KeyCacheObject, Boolean> map = U.newLinkedHashMap(1);
-
-                map.put(key, false);
+                Map<KeyCacheObject, Boolean> map = Collections.singletonMap(key, false);
 
                 req = new GridNearGetRequest(
                     cctx.cacheId(),

http://git-wip-us.apache.org/repos/asf/ignite/blob/5407ea69/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearGetRequest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearGetRequest.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearGetRequest.java
index 6d60298..0c2451e 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearGetRequest.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearGetRequest.java
@@ -22,6 +22,7 @@ import java.nio.ByteBuffer;
 import java.util.Collection;
 import java.util.Iterator;
 import java.util.LinkedHashMap;
+import java.util.Map;
 import java.util.UUID;
 import org.apache.ignite.IgniteCheckedException;
 import org.apache.ignite.internal.GridDirectCollection;
@@ -122,7 +123,7 @@ public class GridNearGetRequest extends GridCacheMessage implements GridCacheDep
         IgniteUuid futId,
         IgniteUuid miniId,
         GridCacheVersion ver,
-        LinkedHashMap<KeyCacheObject, Boolean> keys,
+        Map<KeyCacheObject, Boolean> keys,
         boolean readThrough,
         @NotNull AffinityTopologyVersion topVer,
         UUID subjId,


Mime
View raw message