hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-20459 Majority of scan CPU time in HBase-1 spent in size estimation
Date Sun, 22 Apr 2018 03:06:55 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2.0 51069e6e8 -> 9d0a2e850


HBASE-20459 Majority of scan CPU time in HBase-1 spent in size estimation


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/9d0a2e85
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/9d0a2e85
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/9d0a2e85

Branch: refs/heads/branch-2.0
Commit: 9d0a2e850ea0f685435009894adc8f6250342169
Parents: 51069e6
Author: Lars Hofhansl <larsh@apache.org>
Authored: Sat Apr 21 08:09:18 2018 -0700
Committer: Michael Stack <stack@apache.org>
Committed: Sat Apr 21 20:06:51 2018 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/util/ClassSize.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/9d0a2e85/hbase-common/src/main/java/org/apache/hadoop/hbase/util/ClassSize.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/util/ClassSize.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/ClassSize.java
index 82f6e60..6f88c00 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/util/ClassSize.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/ClassSize.java
@@ -172,7 +172,7 @@ public class ClassSize {
     }
 
     long sizeOfByteArray(int len) {
-      return align(arrayHeaderSize() + len);
+      return align(ARRAY + len);
     }
   }
 
@@ -217,7 +217,7 @@ public class ClassSize {
     @Override
     @SuppressWarnings("static-access")
     long sizeOfByteArray(int len) {
-      return align(arrayHeaderSize() + len * UnsafeAccess.theUnsafe.ARRAY_BYTE_INDEX_SCALE);
+      return align(ARRAY + len * UnsafeAccess.theUnsafe.ARRAY_BYTE_INDEX_SCALE);
     }
   }
 


Mime
View raw message