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:02:30 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 e60189035 -> 6685b62ab


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

Branch: refs/heads/branch-1
Commit: 6685b62abe44227ee98b4e88386c12a02d718ce3
Parents: e601890
Author: Lars Hofhansl <larsh@apache.org>
Authored: Sat Apr 21 10:01:14 2018 -0700
Committer: Lars Hofhansl <larsh@apache.org>
Committed: Sat Apr 21 10:02:07 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/6685b62a/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 edb5b2d..5e6627f 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
@@ -141,7 +141,7 @@ public class ClassSize {
     }
 
     long sizeOf(byte[] b, int len) {
-      return align(arrayHeaderSize() + len);
+      return align(ARRAY + len);
     }
   }
 
@@ -186,7 +186,7 @@ public class ClassSize {
     @Override
     @SuppressWarnings("static-access")
     long sizeOf(byte[] b, 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