ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [2/2] incubator-ignite git commit: ignite-950: performance improvements
Date Wed, 24 Jun 2015 11:01:18 GMT
ignite-950: performance improvements


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

Branch: refs/heads/ignite-950
Commit: 6bf4fa7559ece0c55096932aa2c39f8f0cbd2e45
Parents: 0f97c47
Author: Denis Magda <dmagda@gridgain.com>
Authored: Wed Jun 24 13:15:58 2015 +0300
Committer: Denis Magda <dmagda@gridgain.com>
Committed: Wed Jun 24 13:15:58 2015 +0300

----------------------------------------------------------------------
 .../marshaller/optimized/OptimizedObjectOutputStreamExt.java     | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/6bf4fa75/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedObjectOutputStreamExt.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedObjectOutputStreamExt.java
b/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedObjectOutputStreamExt.java
index 2ded7c9..9833e98 100644
--- a/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedObjectOutputStreamExt.java
+++ b/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedObjectOutputStreamExt.java
@@ -115,9 +115,7 @@ public class OptimizedObjectOutputStreamExt extends OptimizedObjectOutputStream
                 writeShort(footerLen);
 
                 if (hasHandles) {
-                    for (int i = 0; i < data.size(); i++) {
-                        Meta fieldMeta = data.get(i);
-
+                    for (Meta fieldMeta : data) {
                         GridHandleTable.ObjectInfo objInfo = handles.get(fieldMeta.fieldId);
 
                         if (objInfo == null)


Mime
View raw message