hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject hbase git commit: HBASE-20459 Majority of scan CPU time in HBase-1 spent in size estimation.
Date Sat, 21 Apr 2018 17:12:17 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 46cb5dfa2 -> 00fca5a4c


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/00fca5a4
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/00fca5a4
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/00fca5a4

Branch: refs/heads/master
Commit: 00fca5a4c9bdc73b4e0c962af0cbfcc7db2029fc
Parents: 46cb5df
Author: Lars Hofhansl <larsh@apache.org>
Authored: Sat Apr 21 10:12:24 2018 -0700
Committer: Lars Hofhansl <larsh@apache.org>
Committed: Sat Apr 21 10:12:24 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/00fca5a4/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