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

This commit is contained in:
Lars Hofhansl 2018-04-21 10:12:24 -07:00
parent 46cb5dfa22
commit 00fca5a4c9
1 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ public class ClassSize {
} }
long sizeOfByteArray(int len) { long sizeOfByteArray(int len) {
return align(arrayHeaderSize() + len); return align(ARRAY + len);
} }
} }
@ -217,7 +217,7 @@ public class ClassSize {
@Override @Override
@SuppressWarnings("static-access") @SuppressWarnings("static-access")
long sizeOfByteArray(int len) { long sizeOfByteArray(int len) {
return align(arrayHeaderSize() + len * UnsafeAccess.theUnsafe.ARRAY_BYTE_INDEX_SCALE); return align(ARRAY + len * UnsafeAccess.theUnsafe.ARRAY_BYTE_INDEX_SCALE);
} }
} }